can anyone explain this error i get when i try to run this file?
1st file named RacingForm.aspx contains this code:
<script runat="server" language="
vb">
Sub Page_Load()
Response.write("<b>Name: </b>" + Request.Form("name") + "<br><br>")
Response.write("<b>Address: </b>" + Request.Form("address") + "<br><br>")
Response.write("<b>************: </b>" + Request.Form("************") + "<br><br>")
Response.write("<b>Racing Event: </b>" + Request.Form("race") + "<br><br>")
End Sub
</script>
<html>
<head>
<title>Race Form 2005</title>
</head>
<body>
<h1>Racing for the 2k5</h1>
<h3>Brought to you by An</h3>
<form action="RacingFormResponse.aspx method="post">
Enter in your racer stats:<br><br>
Name: <asp:textbox id="name" runat="server" /><br><br>
Address: <asp:textbox id="address" runat="server" textmode="multiline" rows="5" /><br><br>
************: <asp:radiobuttonlist id="************" runat="server">
<asp:listitem id="option1" value="Male" />
<asp:listitem id="option2" value="Female" />
</asp:radiobuttonlist>
Sign up for the race you want to rip it up on:
<asp:dropdownlist id="race" runat="server">
<asp:listitem id="RaceOption1" value="Tasabuka" />
<asp:listitem id="RaceOption2" value="Cali Speedway" />
<asp:listitem id="RaceOption3" value="Pike's Peak" />
</asp:dropdownlist><br>
<input type="submit">
</form>
</body>
</html>
second file named RacingFormResponse.aspx contains:
<script runat="server" language="
vb">
Sub Page_Load()
Response.write("<b>Name: </b>" + Request.Form("name") + "<br><br>")
Response.write("<b>Address: </b>" + Request.Form("address") + "<br><br>")
Response.write("<b>************: </b>" + Request.Form("************") + "<br><br>")
Response.write("<b>Racing Event: </b>" + Request.Form("race") + "<br><br>")
End Sub
</script>
<html>
<head>
<title>This is your Racing Stats</title>
</head>
<body>
<br><Br>
There you have it... your racing form.
</body>
</html>
the error says that the <asp:textbox...> needs to be contained within the <form> tag and the <form> tag need to be set to the attribute runat="server" but if you do that then doesn't asp.net not allow you to post ot another page because of the processing at the server making asp.net want to return to the original page???
confused here