Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello, I'm just trying to learn

Status
Not open for further replies.

lck092580

Programmer
Jun 19, 2002
440
CA
Hello,

I'm just trying to learn the new ASP.NET web forms and have ran into a problem. I copied the text off the textbook and tried to run it but got the following error msg:

Server Error in '/' Application.

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

------------------
The code is very simple:

<%@ Page Language=&quot;VB&quot; %>

<html><body>
<asp:TextBox value=&quot;Welcome to ASP.NET!&quot; runat=&quot;server&quot;/>
</body></html>

What am I doing wrong?.. Is my IIS not set up properly?

Thanks.

T
 
Implement this:

<%@ Page Language=&quot;VB&quot; %>
<html>
<body>
<form runat=&quot;server&quot;>
<asp:TextBox value=&quot;Welcome to ASP.NET!&quot; runat=&quot;server&quot;/>
</form>
</body>
</html>
[/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top