Click here to Skip to main content
15,898,371 members
Please Sign up or sign in to vote.
1.67/5 (3 votes)
See more:
The control must be placed inside a form tag with runat=server.
Posted

put all ur tags inside


<form id="form1" runat="server">


ur tags

</form>
 
Share this answer
 
Means exactly what it says: the control needs to be inside a form tag, and have the attribute runat=server

<form>
   ...
   <yourcontrol runat=server />
   ...
</form>
 
Share this answer
 
Comments
Alok Kumar Sharma 16-Jun-11 8:33am    
I have already add runat="Sever"
Alok Kumar Sharma 16-Jun-11 8:34am    
but stiil problem.
OriginalGriff 16-Jun-11 8:40am    
Show us your code fragment with the control and the form tag - remmebr to tell us which line it is complaining about!
Alok Kumar Sharma 16-Jun-11 8:49am    
Thanks ,
I have found of my solution .
I have add EnableEventValidation="false"
Now working Fine.
Thanks
Alok Kumar Sharma
amit28august 16-Jun-11 8:39am    
can u give me the error, or check for some control, is it missing with runat tag
u require to place ur controls in form tab only


a page can have a single form tag only
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900