Solved

sending parameters via netscape

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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

632 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