Wednesday, 18 September 2013

Control 'textboxId' of type 'TextBox' must be placed inside a form tag with runat=server

Exception Details:  System.web.HttpException: control 'Header1_txtbox1' of type 'TextBox' must be Placed inside a form tag with runat= server.














When you Creating the Asp.net Controls  you need to add in form tag.

Like



<form runat="server">
    <asp:textbox id="txtboxId" runat="server" width="130px"></asp:textbox>
</form>

 
 

No comments:

Post a Comment