request.querystring length max

D

dal.luc

Hello,

I want to load an asp page with a very great variable part (something
like save.asp?myvariable=aa...zzzzz
I know the length of aa...zzzzz is limited to 255 characters. But I
would like to be able to send a request of length, let say of 2500
characters.

Can someone help me ?

Thanks
 
E

Evertjan.

(e-mail address removed) wrote on 20 nov 2006 in
microsoft.public.inetserver.asp.general:
I want to load an asp page with a very great variable part (something
like save.asp?myvariable=aa...zzzzz
I know the length of aa...zzzzz is limited to 255 characters. But I
would like to be able to send a request of length, let say of 2500
characters.

Use

<form method='post'><input name ='myvariable'>...

and

request.form("myvariable")
 
D

dal.luc

The problem is that my page is sent by a javascript :
location.replace("save.asp?myvariable=aaaaaaa....zzzz")

Any idea for this situation ?

Thanks a lot

Luc

(
Evertjan. a écrit :
 
T

Tim Slattery

The problem is that my page is sent by a javascript :
location.replace("save.asp?myvariable=aaaaaaa....zzzz")

Any idea for this situation ?

Make a hidden form in your page:

<form id="myform" action="save.asp" method="post">
<input type="hidden" id="myvariable">
</form>

Now, instead of the "location.replace" line you quoted above, use
these lines:

document.getElementById("myvariable").value="aaaaaaa.....zzzz";
document.getElementById("myform").submit();
 
T

Tim Slattery

Evertjan. said:
Tim Slattery wrote on 20 nov 2006 in
microsoft.public.inetserver.asp.general:


<input type="hidden" id="myvariable" name="myvariable">

Right, thanks. The id attribute so the script can access it easily,
the name attribute so that it will be submitted.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,137
Messages
2,570,794
Members
47,342
Latest member
eixataze

Latest Threads

Top