error message "'TextBox' must be inside a form label with runat=server"

joshuayork

Member
Joined
Apr 21, 2008
Messages
8
Programming Experience
Beginner
regarding with ASP.Net
I am trying hard to do this but why do I get error message "The control 'ctl1' of type 'TextBox' must be inside a form label with runat=server" while trying to place a control inside a form dynamically?

somebody.....
 
Hard to guess at with no code but your textbox needs to go between the form tags like:

VB.NET:
<body>
    <form id="form1" runat="server">
        <asp:TextBox ID="ctl1" runat="server"></asp:TextBox>
    </form>
</body>
 
Back
Top