473,390 Members | 1,257 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 software developers and data experts.

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.querystring("querystr")

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 14003
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********@yahoo.com> wrote in message
news:41**************************@posting.google.c om...
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.querystring("querystr")

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("name")? 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********@yahoo.com> a écrit dans le message de news:41**************************@posting.google.c om... 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.querystring("querystr")

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**************@TK2MSFTNGP09.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********@yahoo.com> a écrit dans le message de

news:41**************************@posting.google.c om...
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.querystring("querystr")

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.google.co m...
: "Patrice" <no****@nowhere.com> wrote in message
news:<#Z**************@TK2MSFTNGP09.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********@yahoo.com> a écrit dans le message de
: > news:41**************************@posting.google.c om...
: > > 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.querystring("querystr")
: > >
: > > 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
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 =...
7
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...
0
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...
5
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
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...
2
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 ...
14
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...
12
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....
8
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
Oralloy
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,...
0
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...
0
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...

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.