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. Advertising

  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. 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. Replies:
    3
    Views:
    13,204
  2. Eric Layman
    Replies:
    3
    Views:
    625
    Rad [Visual C# MVP]
    Apr 14, 2007
  3. Evan
    Replies:
    1
    Views:
    389
    Marc 'BlackJack' Rintsch
    Nov 4, 2008
  4. Evan
    Replies:
    3
    Views:
    518
    Marc 'BlackJack' Rintsch
    Nov 4, 2008
  5. vikrant
    Replies:
    8
    Views:
    361
    vikrant
    May 17, 2007
Loading...

Share This Page