Querystring problem (&)

Discussion in 'ASP General' started by Travis Pupkin, Jan 18, 2004.

  1. How do you handle an ampersand (&) if it appears as part of the string
    in a querystring? Is there a way to tell the server it is not the
    beginning of a new variable being passed, but rather just a part of the
    string value?

    Thanks
     
    Travis Pupkin, Jan 18, 2004
    #1
    1. Advertising

  2. Travis Pupkin

    Bob Barrows Guest

    Travis Pupkin wrote:
    > How do you handle an ampersand (&) if it appears as part of the string
    > in a querystring? Is there a way to tell the server it is not the
    > beginning of a new variable being passed, but rather just a part of
    > the string value?
    >
    > Thanks


    Use Server.URLEncode() when building the querystring. It will replace
    ampersands with %26

    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"
     
    Bob Barrows, Jan 18, 2004
    #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. =?Utf-8?B?b29wZXI=?=

    request.querystring and frames problem

    =?Utf-8?B?b29wZXI=?=, Oct 27, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    509
    =?Utf-8?B?b29wZXI=?=
    Oct 27, 2003
  2. Mike D
    Replies:
    0
    Views:
    448
    Mike D
    Nov 21, 2003
  3. =?Utf-8?B?QWxlamFuZHJvIFBlcmV6?=

    Big problem with Querystring and App Integration !!!!!!!!!!

    =?Utf-8?B?QWxlamFuZHJvIFBlcmV6?=, Apr 13, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    312
    =?Utf-8?B?QWxlamFuZHJvIFBlcmV6?=
    Apr 13, 2004
  4. Mehdi
    Replies:
    6
    Views:
    36,180
    sloan
    Apr 6, 2006
  5. Adeel Ahmad
    Replies:
    1
    Views:
    565
    Anthony Jones
    Mar 7, 2006
Loading...

Share This Page