You need to make sure your controls code is within the <runat=”server” language=”c#”> tag

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of csharp_r
Sent: 22 September 2005 17:45
To: [email protected]
Subject: [Microsofts_C_Sharp] a problem to add a control in a webform

 

Hi, when i want to add a control (for example TextBox) in a webform in
click event of a Button, it has an error like this:
"Control '_ctl0' of type 'TextBox' must be placed inside a form tag
with runat=server"
what's this and how i can solve this problem ?






SPONSORED LINKS
Basic programming language C programming language Computer programming languages
Programming languages C programming language Software programming language


YAHOO! GROUPS LINKS




Reply via email to