Single quote in URL

Discussion in 'ASP General' started by yiggie, Jun 15, 2005.

  1. yiggie

    yiggie Guest

    Hi,
    I am having a problem with a single quote in my URL.
    I use HTMLEncode and all is good on my machine, but when I test it with a
    browser from a different machine, I get 403 on invalid characters. More, it
    seems to me that the URL gets truncated after that single quote that I have
    in my URL.

    Any insight?

    Thanks.
     
    yiggie, Jun 15, 2005
    #1
    1. Advertisements

  2. yiggie

    Steven Burn Guest

    Use Server.URLEncode() instead of Server.HTMLEncode()

    --
    Regards

    Steven Burn
    Ur I.T. Mate Group
    www.it-mate.co.uk

    Keeping it FREE!

    "yiggie" <> wrote in message news:...
    > Hi,
    > I am having a problem with a single quote in my URL.
    > I use HTMLEncode and all is good on my machine, but when I test it with a
    > browser from a different machine, I get 403 on invalid characters. More, it
    > seems to me that the URL gets truncated after that single quote that I have
    > in my URL.
    >
    > Any insight?
    >
    > Thanks.
    >
     
    Steven Burn, Jun 15, 2005
    #2
    1. Advertisements

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. Replies:
    3
    Views:
    14,456
  2. Stimp
    Replies:
    2
    Views:
    2,612
    Stimp
    Sep 20, 2006
  3. Eric Layman
    Replies:
    3
    Views:
    854
    Rad [Visual C# MVP]
    Apr 14, 2007
  4. Evan
    Replies:
    1
    Views:
    593
    Marc 'BlackJack' Rintsch
    Nov 4, 2008
  5. Evan
    Replies:
    3
    Views:
    700
    Marc 'BlackJack' Rintsch
    Nov 4, 2008
  6. Replies:
    10
    Views:
    1,997
    Anno Siegel
    Apr 17, 2006
  7. vikrant
    Replies:
    8
    Views:
    637
    vikrant
    May 17, 2007
  8. Replies:
    2
    Views:
    223
    slebetman
    Jul 7, 2008
Loading...