Solved

sending parameters via netscape

Posted on 2000-02-21
5
191 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

Technology Partners: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
dynamic created check uncheck boxes 6 41
Validating Date 4 28
Sending ASP to server side 8 31
Text color and background in a text box. 2 25
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

756 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