![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
I have built a composite control that contains an asp.CheckBox control. If I add the control to a web form at design time everything works OK. BUT if I add the control at runtime using the code this.controls.add (mycompositecontrol) in the page_load event of a web form I get an error message. "Control of type 'CheckBox' must be placed inside a form tag with runat=server". How can I add my control programatically without getting this alarm? (I have to add my controls using code because I don't know how many I need). |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |