p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: "Parameter is incorrect" error from Netscape


Message #1 by "Charley Walter" <CharleyWalter@h...> on Wed, 18 Jul 2001 01:00:44
Charley,

When you do Response.Writes() you need to put something like Response.End
straight afterwards, othewise the code will keep running until it hits the
error, and then it will baulk, and your response.write will not end up being
sent to the browser.

Secondly, my guess is that in the HTML on the first page, you are either not
using " to delimit the value of HTML tag attributes:

<input type=text value=Ha Ha Ha>

is incorrect

<input type="text" value="Ha Ha Ha">

is correct, -or- you are passing parameters via the URL (?ID=somevalue), but
you are not using Server.URLEncode() on the values.

You need to do these things because certain characters can not be used as
part of HTML GET requests, or will not be submitted by the browser to the
server. Now, IE is more intelligent. It makes up for our failures as
web-designers by doing these things behind the user's back. Netscape does
not.

On your subsequent page, you are trying to do something the value that was
supposedly passed, but didn't get passed by Netscape, and so your code is
baulking.

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
----- Original Message -----
From: "Charley Walter" <CharleyWalter@h...>
To: "Code Clinic" <proasp_codeclinic@p...>
Sent: Wednesday, July 18, 2001 1:00 AM
Subject: [proasp_codeclinic] "Parameter is incorrect" error from Netscape


: The following describes an application that works with IE 5.5 but not in
: Netscape 4.x (and everybody is running on Windows 2000).
:
: I'm not sure if this is an ASP or a browser problem, but, here goes.
:
: I have a form (ASP generated) that does a post to a page on another
: server.  When the other page (Perl) finishes, it re-directs back to an
: ASP, code-only page (that eventually re-directs to another page on my
: server).
:
: When the browser is IE, works fine.  When it's Netscape, a one-line error
: is displayed "Parameter is incorrect" with no clue as to where it's coming
: from.  Throwing response.writes in the code seems to have no effect.  When
: I introduced a code error in the receiving script (coded an invalid
: character conversion just to get an error), I get the error displayed by
: the Netscape browser (which tells me that some code is being executed).
: When I correct the error, all I get is the "Parameter is incorrect" and
: (as far as I can tell) nothing has executed within the script.
:
: DOES ANYBODY HAVE A CLUE?
:
: Thank you very much from the bottom of my heart
: ---
: * Fast, Full-Featured Microsoft® Excel Web Reports & Charts!
: A breakthrough in high performance Web application development,
SoftArtisans
: ExcelWriter 1.1 supports native Excel charting, image insertion, and
: advanced functions & formatting. One click generates presentation-quality
: Excel spreadsheets-and ExcelWriter performs over 100 times faster than the
: Excel Object. Several editions, including ExcelWriterFREE, are available.
: http://www.softartisans.com/softartisans/excelwriter.html>
:
$subst('Email.Unsub')


  Return to Index