Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 22nd, 2005, 02:17 AM
Registered User
 
Join Date: Aug 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to tomxu
Default Help!Why IE said this?

The error message is :
Control 'FullName' of type TextBox must be placed inside a form tag with runat=server


I followed by the book.

The source code is:

<html>
<head>
<title>Holiday Page</title>
</head>
<body>
<form action="holidayresponse.apsx" method="post" >
<h1>Feiertag Holidays</h1>
Please enter your details here:
<br/><br/>
Name:<asp:TextBox ID="FullName" runat="server" />
<br/>
Address:<asp:textbox ID="Address" Rows="5" TextMode="MultiLine" runat="server"/></p>
<br/><br/>
************ -
    <asp:RadioButtonList ID="************" runat="server">
      <asp:ListItem value="Male"/>
      <asp:ListItem value="Female"/>
    </asp:RadioButtonList>
Please select the desitination you would like details on:
    <asp:DropDownList ID="Destination" runat="server">
      <asp:ListItem value="Madrid"/>
      <asp:ListItem value="Barcelona"/>
      <asp:ListItem value="Lisbon"/>
      <asp:ListItem value="Oslo"/>
      <asp:ListItem value="Prague"/>
    </asp:DropDownList>

<br/><br/>
    <input type="submit">
    <input type="Reset">
</form>

</body>
</html>

Tom from China University of Geoscience at Beijing... I'm instested in C#,Asp.Net,Linux,GIS
 
Old August 22nd, 2005, 04:44 AM
Friend of Wrox
 
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just perform a search on term "holidayresponse.apsx" in this forum and find posts already dealing with this issue.

Charul Shukla









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.