Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

sending parameters via netscape

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
amirl
Asked:
amirl
1 Solution
 
xabiCommented:
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
 
hjackCommented:
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
 
sybeCommented:
hijack is right.

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

<%=Server.UrlEncode(Move)%>




0
 
amirlAuthor Commented:
unfortuintly it does not work.
i tried all the soulutions that have been
ofered
any new idea
amirl
0
 
amirlAuthor Commented:
after sevrel expirience it finally works.
hijack  was right andyou gave the tool to do
it.
thanks, Amirl
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now