Passing Querystring in Netscape

Results 1 to 3 of 3

Thread: Passing Querystring in Netscape

  1. #1
    Jason Buck Guest

    Default Passing Querystring in Netscape

    This is what I get:<BR>Cause of the error is spaces in the querystring.<BR>ie: http://mysite.asp?DOCID=Joe Mamas Resume<BR><BR>HTTP Error 400<BR><BR>400 Bad Request<BR><BR>Due to malformed syntax, the request could not be understood by the server. The client should not repeat the request without<BR>modifications.<BR><BR>If I use urlEncode to pass the string I get http://mysite.asp?DOCID=Joe%20Mamas%20Resume or http://mysite.asp?DOCID=Joe+Mamas+Resume passed to the next page. Then for some reason ASP either tries to passed the plus as a character and then the value doesn&#039t match up with the information in my database or it works but the shows the urlEncodes in my response.writes of the querystring on the page.<BR><BR>Any suggestions. <BR><BR>Respectfully,<BR><BR>Jason Buck<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Passing Querystring in Netscape

    You need to use the Server.URLEncode method for things to be "right" all over. When you retrieve the item from the querystring with Request.QueryString("DOCID") it should be converted to the string you had before Server.URLEncode. It&#039s not doing that?

  3. #3
    Somnath Dhar Guest

    Default RE: Passing Querystring in Netscape

    Use the follwing code wherever you pass any text thriugh query string.<BR> http://mysite.asp?DOCID=Server.URLEncode("Joe Mamas Resume")<BR><BR><BR><BR>

Posting Permissions

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