Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

sending parameters via netscape

Posted on 2000-02-21
5
Medium Priority
?
204 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 300 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

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