Hello,
I want to load an asp page with a very great variable part (something
like save.asp?myvari able=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 5 4518 da*****@gmail.c om wrote on 20 nov 2006 in
microsoft.publi c.inetserver.as p.general:
I want to load an asp page with a very great variable part (something
like save.asp?myvari able=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("m yvariable")
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
The problem is that my page is sent by a javascript :
location.replac e("save.asp?myv ariable=aaaaaaa ....zzzz")
Any idea for this situation ?
Thanks a lot
Luc
(
Evertjan. a écrit : da*****@gmail.c om wrote on 20 nov 2006 in
microsoft.publi c.inetserver.as p.general:
I want to load an asp page with a very great variable part (something
like save.asp?myvari able=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("m yvariable")
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
"da*****@gmail. com" <da*****@gmail. comwrote:
>The problem is that my page is sent by a javascript : location.repla ce("save.asp?my variable=aaaaaa a....zzzz")
Any idea for this situation ?
Make a hidden form in your page:
<form id="myform" action="save.as p" method="post">
<input type="hidden" id="myvariable" >
</form>
Now, instead of the "location.repla ce" line you quoted above, use
these lines:
document.getEle mentById("myvar iable").value=" aaaaaaa.....zzz z";
document.getEle mentById("myfor m").submit() ;
--
Tim Slattery
MS MVP(DTS) Sl********@bls. gov
Tim Slattery wrote on 20 nov 2006 in
microsoft.publi c.inetserver.as p.general:
"da*****@gmail. com" <da*****@gmail. comwrote:
>>The problem is that my page is sent by a javascript : location.repl ace("save.asp?m yvariable=aaaaa aa....zzzz")
Any idea for this situation ?
Make a hidden form in your page:
<form id="myform" action="save.as p" method="post">
<input type="hidden" id="myvariable" >
<input type="hidden" id="myvariable " name="myvariabl e">
</form>
Now, instead of the "location.repla ce" line you quoted above, use
these lines:
document.getEle mentById("myvar iable").value=" aaaaaaa.....zzz z";
document.getEle mentById("myfor m").submit() ;
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
"Evertjan." <ex************ **@interxnl.net wrote:
>Tim Slattery wrote on 20 nov 2006 in microsoft.publ ic.inetserver.a sp.general:
>"da*****@gmail .com" <da*****@gmail. comwrote:
>>>The problem is that my page is sent by a javascript : location.rep lace("save.asp? myvariable=aaaa aaa....zzzz")
Any idea for this situation ?
Make a hidden form in your page:
<form id="myform" action="save.as p" method="post"> <input type="hidden" id="myvariable" >
<input type="hidden" id="myvariable " name="myvariabl e">
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.repla ce" line you quoted above, use these lines:
document.getEl ementById("myva riable").value= "aaaaaaa.....zz zz"; document.getEl ementById("myfo rm").submit() ;
--
Tim Slattery
MS MVP(DTS) Sl********@bls. gov This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 to my system, the current admin user logged in gets
logged out.
I can't seem to work out how - I can't even trace back where some of
the variables are coming from (for example, the "ref" part of the
Request.QueryString method).
Could someone...
|
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
@CodePage = 65001 to an ASP page makes the ASP page decode UTF-8 data
in query string properly. Without the directive,
Request.QueryString(var) returns garbled data. With the directive,
Request.QueryString(var) decodes UTF-8 encoded data properly. (I tried
|
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
|
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 get the error:
Object reference not set to an instance of an object
|
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 Request.QueryString.Set("id", "0");
it says it is Read Only. How can this be done? Why is there a Set() method
if you can't use it?
| |
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 the dat
I use this code in as
<%For Each strPartNo In Request.QueryString("pn"
lngQty = Request.QueryString("qty_" & strPartNo
strPartNo = LCase(strPartNo
Response.Write("strPartNo"& strPartNo& lngQty
Next
%
|
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 what I did in trational asp, however if I did abov in ASP.NET, I
always got an error of "Object reference not set to an instance of an
object. "
How should I solve the problem?
|
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 way around this? I need to read it.
Thanks!
|
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 that
in if I do this:
var state = <%=Request.QueryString%>
This returns an undefined object that I can't seem to do any checks
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |