Need help with LoadControl

  • Thread starter Thread starter Kurt
  • Start date Start date
K

Kurt

When I try to use LoadControl I get the error message below. Any help would
be great.

Kurt

Control '_ctl0_Classification' of type 'TextBox' must be placed inside a
form tag with runat=server
 
Any control that can cause PostBAck should be placed within <form> tags...

<form
... All PostBack controls go here.
</form>
 
Hi,
To be more accurate. All "web forms" controls must be under Form tag
with runat=server attribute. this attribute guarantee the postback
behavior.

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
 
this.FindControl("FormName").Controls.Add(MyControl);

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
 
Back
Top