473,505 Members | 14,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

request.querystring length max

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

Nov 20 '06 #1
5 4515
da*****@gmail.com 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)
Nov 20 '06 #2
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 :
da*****@gmail.com 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)
Nov 20 '06 #3
"da*****@gmail.com" <da*****@gmail.comwrote:
>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)
Sl********@bls.gov
Nov 20 '06 #4
Tim Slattery wrote on 20 nov 2006 in
microsoft.public.inetserver.asp.general:
"da*****@gmail.com" <da*****@gmail.comwrote:
>>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)
Nov 20 '06 #5
"Evertjan." <ex**************@interxnl.netwrote:
>Tim Slattery wrote on 20 nov 2006 in
microsoft.public.inetserver.asp.general:
>"da*****@gmail.com" <da*****@gmail.comwrote:
>>>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="aaaa aaa.....zzzz";
document.getElementById("myform").submit();
--
Tim Slattery
MS MVP(DTS)
Sl********@bls.gov
Nov 20 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2723
by: Max | last post by:
Hello. This is the first time I've posted to a newsgroup, and I do this because I'm in desperate need of help. I'm working a user management system, and when I activate a user that has registered...
0
2690
by: Samuel Fung | last post by:
Hi all, Can ASP retrieve UTF-8 encoded data in query string properly, when used with IIS 5.0 on Windows 2000 Pro/Server? With some trial and error, it seems that adding the directive...
5
2391
by: Ivan | last post by:
hi, I saw some program using "request("fieldname") " instead of "request.QueryString" to get the value from URL, what's the different ?? thanks
4
1598
by: Steve | last post by:
Hi All, This problem is really annoying me, as I am sure there is a simple solution to it. If I try to read a querystring value in the Page_Load event and that querystring does not exist I...
4
13176
by: Steve | last post by:
Hi- I'd like to set values in the QueryString if I detect that a user submits a bad value, say... ?id=333 where there is no id '333', I would like to set it to '0' for example. I tried to use...
2
1831
by: mahsa | last post by:
Hi have have some link like thi http://x.com/Shoppingcart.aspx?pn=ps50210&qty_ps50210=1&pn=excel&qty_excel=1&pn=l4504000&qty_l4504000=1&sku=PS50210&cat=laminate&action=updat now I want to request...
4
25337
by: Guoqi Zheng | last post by:
On my application, I need to have different action based on the pass in query string. When the query string is not presented, I try to use If request.querystring("id") ="" THEN ...... This is...
5
10982
by: VB Programmer | last post by:
I have an ASPX page that is used for content. I have a master page which sticks the page in an IFrame. Question: From the content/ASPX page, I can't seem to reference request.querystring. Any...
2
5491
by: Doogie | last post by:
Hi, I'm writing Javascript code to parse out a query string. I want to handle the case where a parameter value may not be sent. So consider a parameter called "State". If the user doesn't pass...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7018
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5613
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5028
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4699
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1528
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.