B
Bijoy Naick
I am inserting controls dynamically into my page; both Web Controls and User
Controls. Code Below..
I noticed that inspite of specifying the ID for the user controls, in the
HTML, the name is set to : myUC2:_ctl0.. Whats with the :_ctl0?? How can I
get rid of it?
Bijoy
-----------------
Dim newControl As Control
for count = 1 to 5
newControl = New Textbox()
newControl.ID = "myTextBox" & count
Page.Controls.Add(newControl)
next
For User Controls I do
Dim uc As UserControl
for count = 1 to 5
uc = LoadControl("file.ascx")
uc.ID = "myUC" & count
Page.Controls.Add(uc)
next
Controls. Code Below..
I noticed that inspite of specifying the ID for the user controls, in the
HTML, the name is set to : myUC2:_ctl0.. Whats with the :_ctl0?? How can I
get rid of it?
Bijoy
-----------------
Dim newControl As Control
for count = 1 to 5
newControl = New Textbox()
newControl.ID = "myTextBox" & count
Page.Controls.Add(newControl)
next
For User Controls I do
Dim uc As UserControl
for count = 1 to 5
uc = LoadControl("file.ascx")
uc.ID = "myUC" & count
Page.Controls.Add(uc)
next