Request.UrlReferrer

Discussion in 'ASP .Net' started by TJ, Feb 18, 2009.

  1. TJ

    TJ Guest

    Hi,

    ASP.NET 2.0.

    Request.UrlReferrer works fine. I am able to get the previous request url.
    However, if previous request url is something like this form...
    "http:....../test.aspx#id=12"...then, I wasn't able to get the query string
    from the UrlReferrer.
    It seems that it only works if querystring starts ? character for UrlReferrer.

    For some reason, I need to get the previous request query string starts with
    # like
    "http:....../test.aspx#id=12"....

    Is there any way I am able to get the query string for this scenario?

    Thanks,

    TJ
    TJ, Feb 18, 2009
    #1
    1. Advertising

  2. TJ

    TJ Guest

    Thanks for your answer.
    Yes, I know that query string should be using ? sign.

    However, for some reason, they use # sign instead of ? for query string.
    What they said, they can't change the sign for some reason...
    That's why I am asking that any way that I can get the whole query string
    from UrlReferrer...

    "TJ" wrote:

    > Hi,
    >
    > ASP.NET 2.0.
    >
    > Request.UrlReferrer works fine. I am able to get the previous request url.
    > However, if previous request url is something like this form...
    > "http:....../test.aspx#id=12"...then, I wasn't able to get the query string
    > from the UrlReferrer.
    > It seems that it only works if querystring starts ? character for UrlReferrer.
    >
    > For some reason, I need to get the previous request query string starts with
    > # like
    > "http:....../test.aspx#id=12"....
    >
    > Is there any way I am able to get the query string for this scenario?
    >
    > Thanks,
    >
    > TJ
    TJ, Feb 18, 2009
    #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. Hector Bejarano

    Request.UrlReferrer is nothing

    Hector Bejarano, Jul 8, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    824
    Hector Bejarano
    Jul 8, 2003
  2. Harley

    problems with Request.UrlReferrer

    Harley, Aug 9, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    6,543
    John Saunders
    Aug 10, 2003
  3. Guest

    Usage of "Request.UrlReferrer"

    Guest, Dec 25, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    11,078
    Hermit Dave
    Dec 25, 2003
  4. Ivan Demkovitch

    Request.UrlReferrer is NULL ???

    Ivan Demkovitch, Jan 30, 2004, in forum: ASP .Net
    Replies:
    7
    Views:
    5,420
    Kevin Spencer
    Jan 30, 2004
  5. Oney
    Replies:
    3
    Views:
    4,116
Loading...

Share This Page