Two days ago I begined to study this book and then meeted a problem .
After I executed the holidaypage.aspx with webbrower ,it said that:"Control 'address' of type 'TextBox' must be placed inside a form tag with runat=server ".
But if place "runat=server" into the form tag of "hoidaypage.aspx",my brower will not auto go to the "holidayresponse.aspx" after click submit button.It also display "hoidaypage.aspx". The point is that I want it to auto display "holidayresponse.aspx" after click submit button!
Below is the origin code:
-------------------------------------------------------------------
1.holidaypage.aspx:
<html>
<head>
<title>Holiday page</title>
</head>
<body>
<form action="holidayresponse.aspx" method="post">
Please enter your name:
<asp:textbox id="fullname" />
<br /><br />
Please enter your address:
<asp:textbox runat="server" id="address" rows=5 textmode="multiline" />
<br /><br />
please choose ************:
<asp:radiobuttonlist id="************" runat="server">
<asp:listitem id="option1" value="Male" />
<asp:listitem id="option2" value="Female" />
</asp:radiobuttonlist>
<br /><br />
Please select the destination you would like details on:
<asp:dropdownlist id="destination" runat="server">
<asp:listitem value="madrid"/>
<asp:listitem value="oslo"/>
<asp:listitem value="prague"/>
<asp:listitem value="lisbon"/>
</asp:dropdownlist>
<br/><br/>
<input type="Submit">
<input type="reset">
</form>
</body>
</html>
2.holidayresponse.aspx:
<script runat="server" language="
vb">
Sub Page_Load()
response.write("<b>Name:</b>"+request.form("fullname")+"<br/>")
response.write("<b>Adrress:</b>"+request.form("address")+"<br/>")
response.write("<b>************:</b>"+request.form("************")+"<br/>")
response.write("<b>Destination:</b>"+request.form("destination")+"<br/>")
End Sub
</script>
<html>
<head>
<title>Holiday page</title>
</head>
<body>
<br/><br/>
These details have been entered into our database.
You will receive a confirmation email from us shortly.
<br/><br/>
</body>
</html>
-------------------------------------------------------------------
help!thanks!