query string in Netscape

Results 1 to 2 of 2

Thread: query string in Netscape

  1. #1
    Sajith Nambiar Guest

    Default query string in Netscape

    when i am passing a new page with a querystring in href, the same is working in IE, but not in Netscape. when seeing in Netscape, in the URL, the querystring part is displayed as pure text. e.g.<BR>In IE it comes like this and it works:<BR>http://ntserver/golfsys/asp_bin/events/EventsDetails.asp?txtEvent=Golf%20Tournament%20At% 20EastWood <BR><BR>in Netscape it comes like this:<BR>http://ntserver/golfsys/asp_bin/events/EventsDetails.asp?txtEvent=Golf Tournament At EastWood<BR><BR>it gives the error in Netscape.<BR><BR>Any solution for this problem please update.<BR>

  2. #2
    peterjl@austec.net.au Guest

    Default RE: query string in Netscape

    When you are using asp to interactively create the querystring, you need to use the Server.URLEncode method, eg:<BR><BR>&#060;a href="go.asp?code=&#060;%=Server.URLEncode(MyVar)% &#062;"&#062;Link&#060;/a&#062;<BR><BR>IE seems to do this automatically, but if you want to be compatable with NS you need to encode.

Posting Permissions

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