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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Sep 2006
    Location
    Skopje, Macedonia
    Posts
    100
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question I need to pass variable values from one page to another

    Hi everybody!

    I need help to pass variable values from one page to another like this:
    when I click a link (lets say on page default.aspx) to open the other page (lets say results.aspx) and when i click on the link in the address bar to be shown like: mysite.com/results.aspx?variableA=variableAvalue&variableB=variableBvalue

    So if you have ideas, I'm waiting!

    Thanks in advance!

    Lallo

  • #2
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,092
    Thanks
    2
    Thanked 23 Times in 23 Posts
    You might want to do it this way:

    Code:
    Response.Redirect("mysite.com/results.aspx?variableA=variableAvalue&variableB=variableBvalue")
    You can also use Server.Transfer instead. To see the differences and decide which one would work best in your situation, you might to visit this page.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #3
    Regular Coder
    Join Date
    Sep 2006
    Location
    Skopje, Macedonia
    Posts
    100
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Great!!!
    But that is only one half of my question...

    What about to get those values in the second page and do whatever i want with them (to assign those values to variables in the second page for later use)?

  • #4
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,092
    Thanks
    2
    Thanked 23 Times in 23 Posts
    For example:

    Code:
    Dim variableA as String = Request.QueryString("variableA")
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #5
    Regular Coder
    Join Date
    Sep 2006
    Location
    Skopje, Macedonia
    Posts
    100
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thanks!!!!

    I'll go for implementation now!

    I hope it will work!!!
    Thank you very much!


  •  

    Posting Permissions

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