Solved

sending parameters via netscape

Posted on 2000-02-21
5
160 Views
Last Modified: 2010-04-09
i have that application in asp that open a recordset and display the results . each screen  display  8 records and the user has a button which is a
hyperlink (to the same page) that send parameters
such as the sql query, the last record that has been shown etc. in IE it works perfectly, in Netscape
somehow it `s not sending the parameters and i get
an error message . i`m adding a piece of code:
 
 <a href="?Param=1&Move=<%=Move%>&Rec=<%=RecNum%>&SQL=<%=sql%>&Gen=<%=GenderStr%>&Mess=<%=SourcePath%>" onmouseover="window.status='';return true"><img src="images/next.jpg" border="0" WIDTH="106" HEIGHT="33" ></a>


here is the error message:

HTTP Error 400

400 Bad Request

Due to malformed syntax, the request could not be understood by the server. The client
should not repeat the request without modifications.


thank you in advance fellows:

Amirl
0
Comment
Question by:amirl
5 Comments
 
LVL 8

Expert Comment

by:xabi
ID: 2545134
Please do this and give us what you get:
<%
Dim sTmp
sTmp = "?Param=1&Move=" & Move & "&Rec= " & RecNum & "&SQL=" & sql & "&Gen=" & GenderStr & "&Mess=" & SourcePath
response.write sTmp

xabi
0
 

Expert Comment

by:hjack
ID: 2545296
IE will automatically reformat your querystring replacing "illegal" characters like "&" and spaces with their escaped replacements .. for instance an ampersand becomes "%26".
Netscape does not handle this for you.
you have to parse your parameters and do the replacement yourself..  or you can use the post method as an alternative to the querystring..

jack
0
 
LVL 28

Accepted Solution

by:
sybe earned 100 total points
ID: 2549965
hijack is right.

Replacing illegal characters is easy. Use Server.UrlEncode for it.

<%=Server.UrlEncode(Move)%>




0
 

Author Comment

by:amirl
ID: 2562460
unfortuintly it does not work.
i tried all the soulutions that have been
ofered
any new idea
amirl
0
 

Author Comment

by:amirl
ID: 2584465
after sevrel expirience it finally works.
hijack  was right andyou gave the tool to do
it.
thanks, Amirl
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now