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 Controls  you need to add in form tag.


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


No comments:

Post a Comment