Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > request.querystring length max

Reply
Thread Tools

request.querystring length max

 
 
dal.luc@gmail.com
Guest
Posts: n/a
 
      11-20-2006
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

 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      11-20-2006
http://www.velocityreviews.com/forums/(E-Mail 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")

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
 
 
 
dal.luc@gmail.com
Guest
Posts: n/a
 
      11-20-2006
The problem is that my page is sent by a javascript :
location.replace("save.asp?myvariable=aaaaaaa....z zzz")

Any idea for this situation ?

Thanks a lot

Luc

(
Evertjan. a écrit :

> (E-Mail 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")
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)


 
Reply With Quote
 
Tim Slattery
Guest
Posts: n/a
 
      11-20-2006
"(E-Mail Removed)" <(E-Mail Removed)> wrote:

>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="aaaaa aa.....zzzz";
document.getElementById("myform").submit();

--
Tim Slattery
MS MVP(DTS)
(E-Mail Removed)
 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      11-20-2006
Tim Slattery wrote on 20 nov 2006 in
microsoft.public.inetserver.asp.general:

> "(E-Mail Removed)" <(E-Mail Removed)> wrote:
>
>>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">


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

> </form>
>
> Now, instead of the "location.replace" line you quoted above, use
> these lines:
>
> document.getElementById("myvariable").value="aaaaa aa.....zzzz";
> document.getElementById("myform").submit();
>




--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
Tim Slattery
Guest
Posts: n/a
 
      11-20-2006
"Evertjan." <(E-Mail Removed)> wrote:

>Tim Slattery wrote on 20 nov 2006 in
>microsoft.public.inetserver.asp.general:
>
>> "(E-Mail Removed)" <(E-Mail Removed)> wrote:
>>
>>>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">

>
><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.
>
>> </form>
>>
>> Now, instead of the "location.replace" line you quoted above, use
>> these lines:
>>
>> document.getElementById("myvariable").value="aaaaa aa.....zzzz";
>> document.getElementById("myform").submit();
>>


--
Tim Slattery
MS MVP(DTS)
(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
want max width and max height as long as not exceed 100px Summercool HTML 9 10-23-2007 02:27 AM
ADSL Max/Max Gordy NZ Computing 6 11-24-2006 11:41 PM
Textarea max rows and max characters per row Greg Ferris Javascript 2 01-16-2004 07:21 PM
Max Apperture and Max. Shutter Speed Confusion-HELP bhaskar Digital Photography 12 07-22-2003 05:17 PM



Advertisments