473,624 Members | 2,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to pass a long parameter string to a ASP page via Post parameters

Hello All

I have the following test.asp page which needs one parameter querystr
but my querystr is a very long string value. When I send a long value
the query string is getting truncated after some characters.

Can you please kindly share the code segment to workaround how to pass
such a long string value to a asp page. This is how I invoke the test
page:

http://localhost/?querystr=select ............ from xxxxx

'test.asp
<html>
<body>

<%

response.write( "Hello World!")
w=request.query string("queryst r")

response.write "<td><p></td>" & w
%>

</body>
</html>
but part of my query string never gets passed to the asp page appears
asp as a limitation on max string length can you please provide me a
workaround how I can overcome and pass the right string to asp. Please
post the code snippet.

Thanks
Belinda
Jul 19 '05 #1
5 14032
That's not a POST, that's a GET.

http://www.aspfaq.com/2222
http://www.aspfaq.com/2223

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Belinda" <be********@yah oo.com> wrote in message
news:41******** *************** ***@posting.goo gle.com...
Hello All

I have the following test.asp page which needs one parameter querystr
but my querystr is a very long string value. When I send a long value
the query string is getting truncated after some characters.

Can you please kindly share the code segment to workaround how to pass
such a long string value to a asp page. This is how I invoke the test
page:

http://localhost/?querystr=select ............ from xxxxx

'test.asp
<html>
<body>

<%

response.write( "Hello World!")
w=request.query string("queryst r")

response.write "<td><p></td>" & w
%>

</body>
</html>
but part of my query string never gets passed to the asp page appears
asp as a limitation on max string length can you please provide me a
workaround how I can overcome and pass the right string to asp. Please
post the code snippet.

Thanks
Belinda

Jul 19 '05 #2
From what I can remember, there's something like a 256 character limit on a
querystring value. Might not be exact, but I'm almost positive there's a
limit. Why don't you use a traditional post to the other page (setting
action="2ndPage .asp" and method="post") and do a Request.Form("n ame")? Is
there some reason you have to avoid that approach?

James
Jul 19 '05 #3
You can't pass more than 2048 characters in the querystring (for IE, this is
browser dependant, don"t know for others).
You may want to use POST instead.

Also what is your scenario ? Is this string needed client side ? you may
want to avoid to expose this string as this could represent quite a high
risk.

If this is for inter applications communication, you may want to enchance
this mechanism (encryption, standard package such as the SOAP SDK ?)

Patrice
Belinda" <be********@yah oo.com> a écrit dans le message de news:41******** *************** ***@posting.goo gle.com... Hello All

I have the following test.asp page which needs one parameter querystr
but my querystr is a very long string value. When I send a long value
the query string is getting truncated after some characters.

Can you please kindly share the code segment to workaround how to pass
such a long string value to a asp page. This is how I invoke the test
page:

http://localhost/?querystr=select ............ from xxxxx

'test.asp
<html>
<body>

<%

response.write( "Hello World!")
w=request.query string("queryst r")

response.write "<td><p></td>" & w
%>

</body>
</html>
but part of my query string never gets passed to the asp page appears
asp as a limitation on max string length can you please provide me a
workaround how I can overcome and pass the right string to asp. Please
post the code snippet.

Thanks
Belinda

Jul 19 '05 #4
"Patrice" <no****@nowhere .com> wrote in message news:<#Z******* *******@TK2MSFT NGP09.phx.gbl>. ..
You can't pass more than 2048 characters in the querystring (for IE, this is
browser dependant, don"t know for others).
You may want to use POST instead.

Also what is your scenario ? Is this string needed client side ? you may
want to avoid to expose this string as this could represent quite a high
risk.

If this is for inter applications communication, you may want to enchance
this mechanism (encryption, standard package such as the SOAP SDK ?)

Patrice
Belinda" <be********@yah oo.com> a écrit dans le message de

news:41******** *************** ***@posting.goo gle.com...
Hello All

I have the following test.asp page which needs one parameter querystr
but my querystr is a very long string value. When I send a long value
the query string is getting truncated after some characters.

Can you please kindly share the code segment to workaround how to pass
such a long string value to a asp page. This is how I invoke the test
page:

http://localhost/?querystr=select ............ from xxxxx

'test.asp
<html>
<body>

<%

response.write( "Hello World!")
w=request.query string("queryst r")

response.write "<td><p></td>" & w
%>

</body>
</html>
but part of my query string never gets passed to the asp page appears
asp as a limitation on max string length can you please provide me a
workaround how I can overcome and pass the right string to asp. Please
post the code snippet.

Thanks
Belinda


Many thanks for all your views.

Actually this parameter passing and running of this URL will not be
from IE I will do it from a Excel web query. So security should not be
a issue.

Can you kindly let me know how I can do it using POST some samples of
doing it just like passing it in the URL parameter.

Thanks
Belinda
Jul 19 '05 #5
"Belinda" wrote in message
news:41******** *************** **@posting.goog le.com...
: "Patrice" <no****@nowhere .com> wrote in message
news:<#Z******* *******@TK2MSFT NGP09.phx.gbl>. ..
: > You can't pass more than 2048 characters in the querystring (for IE,
this is
: > browser dependant, don"t know for others).
: > You may want to use POST instead.
: >
: > Also what is your scenario ? Is this string needed client side ? you may
: > want to avoid to expose this string as this could represent quite a high
: > risk.
: >
: > If this is for inter applications communication, you may want to
enchance
: > this mechanism (encryption, standard package such as the SOAP SDK ?)
: >
: > Patrice
: >
: > > Belinda" <be********@yah oo.com> a écrit dans le message de
: > news:41******** *************** ***@posting.goo gle.com...
: > > Hello All
: > >
: > > I have the following test.asp page which needs one parameter querystr
: > > but my querystr is a very long string value. When I send a long value
: > > the query string is getting truncated after some characters.
: > >
: > > Can you please kindly share the code segment to workaround how to pass
: > > such a long string value to a asp page. This is how I invoke the test
: > > page:
: > >
: > > http://localhost/?querystr=select ............ from xxxxx
: > >
: > > 'test.asp
: > > <html>
: > > <body>
: > >
: > > <%
: > >
: > > response.write( "Hello World!")
: > > w=request.query string("queryst r")
: > >
: > > response.write "<td><p></td>" & w
: > > %>
: > >
: > > </body>
: > > </html>
: > >
: > >
: > > but part of my query string never gets passed to the asp page appears
: > > asp as a limitation on max string length can you please provide me a
: > > workaround how I can overcome and pass the right string to asp. Please
: > > post the code snippet.
: > >
: > > Thanks
: > > Belinda
:
: Many thanks for all your views.
:
: Actually this parameter passing and running of this URL will not be
: from IE I will do it from a Excel web query. So security should not be
: a issue.
:
: Can you kindly let me know how I can do it using POST some samples of
: doing it just like passing it in the URL parameter.

Belinda...

You're just typing this in on the address line or what?

To POST, you set method="post" in a form and submit the form to your target
..asp page.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #6

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

Similar topics

5
7704
by: Salmo Bytes | last post by:
I want to send an xml string as a get parameter, where the xml is created from a runtime database query. I try to avoid dynamic framesets, but sometimes they're needed: $xml = mysql_stuff($x,$y,$z); echo "<frameset...>"; echo "<frame src=".$PHP_SELF."?xml=".$xml.">"; snip....
7
21612
by: Zlatko Matiæ | last post by:
Let's assume that we have a database on some SQL server (let it be MS SQL Server) and that we want to execute some parameterized query as a pass.through query. How can we pass parameters to the server ? Is it possible to use parameters in pass-through queries ? An additional question: Is it possible to connect to a database on MySQL or PostgreSQL using ADO ? Is it possible to execute pass-through queries with parameters, using ADO...
0
3315
by: Zlatko Matiæ | last post by:
Hi everybody! Recently I was struggling with client/server issues in MS Access/PostgreSQL combination. Although Access is intuitive and easy to use desktop database solution, many problems appear when someone is trying to use it as front-end for real server database systems such as PostgreSQL or MySQL. One of these problems is regarding pass-through queries and parameters. I wanted to have all the code on client, while executing it on...
5
3941
by: Ben | last post by:
Hi I am using a User Control which is referenced by an ASPX page. How can I pass a string parameter to the user control, from the base ASPX page. Thanks Ben
5
2868
by: Apollo0130 | last post by:
hi, i want to pass a parameter (a string) between two forms. i have a Webform A (default.aspx) with a button and a Webform B (detail.aspx). i want to click the button and open the webform B with the parameter submitted from the webform A. how can i do that? greetz Apollo0130
2
3209
by: gumby | last post by:
I would like to call this stored procedure, but I am unable to pass parameters to the @Start and @End. Is thier a way to pass parameters to a pass through query from MS Access? SELECT COUNT(dbo.tblPersActionHistory.PersActionID) AS , .fn_FindStartPayPeriod(dbo.tblPersActionHistory.PersActionID, 2) AS FROM dbo.tblPersActionLog INNER JOIN
14
1872
by: bill | last post by:
Can someone please show me an example of passing a string value into an sql statement in vb 2005? Something like this is what I'm after: Dim sqlButton1 As String = "Select * from tblAssets where Asset_Tag = Me.cboAsset.Text" Thank you, Bill
12
11058
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms. Here is a newbie mistake that I found myself doing (as a newbie), and that even a master programmer, the guru of this forum, Jon Skeet, missed! (He knows this I'm sure, but just didn't think this was my problem; LOL, I am needling him) If...
8
3017
by: Rich P | last post by:
(this is way easier in VB.Net -- but here is how to do it from Access) '------------------------------------------------ Public Declare Function apiShellExecute Lib "shell32.dll" _ Alias "ShellExecuteA" _ (ByVal hwnd As Long, _ ByVal lpOperation As String, _ ByVal lpFile As String, _ ByVal lpParameters As String, _ ByVal lpDirectory As String, _
0
8249
marktang
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...
0
8179
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,...
0
8633
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7176
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4084
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...
0
4187
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1797
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1493
bsmnconsultancy
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...

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.