Spaces in QueryString

Results 1 to 4 of 4

Thread: Spaces in QueryString

  1. #1
    Warren Penner Guest

    Default Spaces in QueryString

    I&#039m passing the text from a cell through a QueryString to a form in another ASP page. IE knows enogh to insert the %20 characters into empty spaces between words in the string, Netscape doesn&#039t and returns an error 400.<BR><BR>Here&#039s the QueryString passed to IE: (this works)<BR><BR> 0Forks%20Market<BR><BR>Here&#039s what Netscape sees: (returns error400)<BR><BR> Brunch at The Forks Market<BR><BR>here&#039s the code that builds the string:<BR><BR>strRef = "step2.asp?fldAuto=" & oRS("fldAuto").Value & "&small=" & sGifUrlSmall & "&desc=" & oRS("Desc")<BR><BR>Any quick way around this?

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default RE: Spaces in QueryString

    have you tried server.urlencode

  3. #3
    Rob Guest

    Default RE: Spaces in QueryString

    Unfortunately with Netscape you are going to have to add the %20 into your string.<BR><BR>You could write a quick function to do this.<BR><BR>Regards,<BR>Rob

  4. #4
    Warren Guest

    Default RE: Spaces in QueryString

    Thanks Akhilesh!!<BR><BR>server.URLencode is the ticket!

Posting Permissions

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