Results 1 to 3 of 3

Thread: querystring?

  1. #1
    Join Date
    Dec 1969

    Default querystring?

    hello,<BR>I have a string that contains the # sign (ex. str= #test).<BR>I am trying to pass this string in a querystring and it is failing, I understand that # and % cannot be used? How can I convert that # character that is in my string, so I can pass it in a querystring successfully?? Thanks!!!

  2. #2
    Eddie Campbell Guest

    Default You encode it like this

    Page1.Asp does this:<BR><BR>&#060;%<BR>MyString = "The Quick Brown ### Jumped over the lazy %%%"<BR>Response.Redirect("Page2.Asp?MyString=" & Server.UrlEncode(MyString))<BR>%&#062;<BR><BR>Page 2.Asp does this<BR><BR>&#060;%<BR>Response.Write "You passed " & Request.QueryString("MyString")<BR>%&#062;

  3. #3
    Join Date
    Dec 1969

    Default RE: You encode it like this


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts