Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder bobleny's Avatar
    Join Date
    May 2007
    Posts
    256
    Thanks
    3
    Thanked 11 Times in 11 Posts

    How do I pass data from one page to another page to a final page?

    I have three pages, the first two collect data via forms and the third page displays the collected data.

    Form One (Registration Form)
    Code:
    <form id="registrationForm" action="DegreePrograms.aspx" method="get" runat="server">
    ...
    </form>
    Form Two (Degree Form)
    Code:
    <form id="DegreeForm" action="RegistrationComplete.aspx" method="get" runat="server">
    ...
    </form>
    At this point I have access to all of the data from the Registration Form via the request.Param("") function. The question is, how do I pass the data from the Degree Form and the Registration form to the final page?

    Thanks!
    --www.firemelt.net--
    * No good deed goes unpunished.
    * Cheer up, the worst has yet to come...
    Get Firefox!

  • #2
    Regular Coder
    Join Date
    Apr 2009
    Posts
    244
    Thanks
    1
    Thanked 20 Times in 20 Posts
    Hey bobleny,

    Please research about usage of the Get and Post methods in .NET (plenty of examples out there). If your form(s) have alot of fields, I would suggest using the Post method, since the Get method allows for only 255 character length to be passed (if I remember correctly). Plus, if you're looking for more security, you don't want to be passing the stuff in a string for all to see (and play with). Anyway, in your first two forms, change the action attribute to point to your third page, where you will pick up the data via server-side code.

    Regards,
    Mike

  • #3
    Banned
    Join Date
    Feb 2011
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    In this You can redirect the user to the next page with the data in a query string, then in the second page you can parse the URL.

    http://www.addonsolutions.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •