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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ASP.NET HTTP GET method help

    Hello, I've been programming in PHP for ever, but my work is having me do this page in asp. So, i was wondering, how do you get variables passed through the address bar? like if i went to the link http://localhost/test.aspx?foo=blah&bar=blah2

    how would I be able to pull the variables from that? I know in PHP there is the $_GET['foo'] but what is it in ASP?

    thanks

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    Check here for documentation
    You can use
    Request.QueryString("foo")
    Request.QueryString("bar")
    I am the luckiest man in the world


  •  

    Posting Permissions

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