Server Variable for querystring

Discussion in 'ASP General' started by scott, Apr 29, 2005.

  1. scott

    scott Guest

    Is there a server variable that returns the query string part of a url?

    Below gets my page, but i need to capture what comes after ".asp"


    Request.ServerVariables("URL")

    returns

    /mywebpage.asp
     
    scott, Apr 29, 2005
    #1
    1. Advertising

  2. Request.Querystring

    sUrl = Request.ServerVariables("URL")
    sQuerystring = Request.Querystring
    If Len(sQuerystring) > 0 Then sUrl = sUrl & "?" & sQuerystring
    Response.WRite sURL

    Ray at work

    "scott" <> wrote in message
    news:...
    > Is there a server variable that returns the query string part of a url?
    >
    > Below gets my page, but i need to capture what comes after ".asp"
    >
    >
    > Request.ServerVariables("URL")
    >
    > returns
    >
    > /mywebpage.asp
    >
    >
     
    Ray Costanzo [MVP], Apr 29, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. D. Shane Fowlkes

    Disguising/encrypting a querystring variable

    D. Shane Fowlkes, Dec 3, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    651
    Joe Fallon
    Dec 5, 2004
  2. =?Utf-8?B?Q3JhaWcgSEI=?=

    Hiding a variable in a querystring

    =?Utf-8?B?Q3JhaWcgSEI=?=, Jan 21, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    402
    =?Utf-8?B?RXRoZW0gQXp1bg==?=
    Jan 21, 2005
  3. Mehdi
    Replies:
    6
    Views:
    36,251
    sloan
    Apr 6, 2006
  4. jason
    Replies:
    1
    Views:
    135
    SiteGuru
    Oct 30, 2003
  5. Adeel Ahmad
    Replies:
    1
    Views:
    583
    Anthony Jones
    Mar 7, 2006
Loading...

Share This Page