Hi, I have a holiday.aspx webform which captures some information about the holiday and displays the info in a holidayresponsepage.aspx page. I am new to asp.net what is best way to do? I am getting an error when I run the following code. holiday.aspx ----------------------
Please enter details here.
Name:
Address:
Sex-
Please select the destination you would like details on:
<input type="submit">
<input type="Reset">
</form>
There's a lot of work to do here - - you are still working with the Classic ASP paradigm, of submitting the form to another page.....and that no longer needs to be done... Create a form with the Runat=Server attribute, so your ASP.Net Textbox Server controls
will work correctly - - then add a regular ASP.Net button Server Control - - - give it an event handler (sub), and inside that sub, just tell it what you need to do - like insert the data into a database, or whatever you'd like
vijayasri
Member
35 Points
7 Posts
webform
Aug 01, 2003 07:39 PM|LINK
<script runat="server" language="vb"> sub page_Load() response.write("Name: " + request.form("FullName") + "Holiday Page
") response.write("Address: " + request.form("Address") + "
") response.write("Sex: " + request.form("Sex") + "
") response.write("Destination: " + request.form("Destination") + "
") end sub </script>
These details have been entered into our database, you should receive a confirmation email from us shortly
azamsharp
All-Star
24614 Points
4612 Posts
Re: webform
Aug 01, 2003 07:57 PM|LINK
HighOnCoding
aka
Participant
825 Points
165 Posts
Re: webform
Aug 01, 2003 08:04 PM|LINK
augustwind
All-Star
35860 Points
4900 Posts
ASPInsiders
Moderator
Re: webform
Aug 01, 2003 08:12 PM|LINK
All Things Dot Net
Stored Procs and Code in a Flash!
ASP.Net Sitemap Creator
vijayasri
Member
35 Points
7 Posts
Re: webform
Aug 02, 2003 01:17 AM|LINK