C
Cesar Ronchese
Hello.
I have a WebForm that contains a Panel object. This panel, at design time is
empty. When running, I need to create dinamically a Label and a WebControl
(built from the same project).
I can create the label and the webcontrol dinamically with no errors, but
only the Label appear in the panel when the page is shown in the client
browser.
How can I resolve that, so the WebControl be shown?
Ps.: some piece of code:
Private sub Page_Load(...)
'the label is ok
dim lbl as new Label
lbl.Text = "Test"
lbl.Visible = True
panPanel.Controls.Add(lbl)
'the webusercontrol is not ok (do not appear in the page)
dim ctr as new MyWebControl
ctr.Visible = True
panPanel.Controls.Add(ctr)
End Sub
(VS 2005 Standard)
[]s
Cesar
I have a WebForm that contains a Panel object. This panel, at design time is
empty. When running, I need to create dinamically a Label and a WebControl
(built from the same project).
I can create the label and the webcontrol dinamically with no errors, but
only the Label appear in the panel when the page is shown in the client
browser.
How can I resolve that, so the WebControl be shown?
Ps.: some piece of code:
Private sub Page_Load(...)
'the label is ok
dim lbl as new Label
lbl.Text = "Test"
lbl.Visible = True
panPanel.Controls.Add(lbl)
'the webusercontrol is not ok (do not appear in the page)
dim ctr as new MyWebControl
ctr.Visible = True
panPanel.Controls.Add(ctr)
End Sub
(VS 2005 Standard)
[]s
Cesar