473,320 Members | 1,612 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,320 software developers and data experts.

Forwarding the Request.Form collection

Hi.

x1.asp:
<form method="post" action="x2.asp"> .... </form>

x2.asp:
DoSomeAdministration()
Response.Redirect "x3.asp?" & Request.Form

x3.asp: further processsing of data
This scenario works for a certain amount of data, but passing data in
Request.QueryString has its limits.
Is there any other way so that x3.asp can retrieve the data posted in
x1.asp? I could put the textual representation of Request.Form into a
session variable, but it would be much easier if I could pass on
Request.Form so that x3.asp would be able to access it the same way as it
could if x1.asp posted directly to x3.asp.


Jul 22 '05 #1
6 2269
You can use hidden fields to do this, redirecting from x2 to x3 with java
script.

"Agoston Bejo" wrote:
Hi.

x1.asp:
<form method="post" action="x2.asp"> .... </form>

x2.asp:
DoSomeAdministration()
Response.Redirect "x3.asp?" & Request.Form

x3.asp: further processsing of data
This scenario works for a certain amount of data, but passing data in
Request.QueryString has its limits.
Is there any other way so that x3.asp can retrieve the data posted in
x1.asp? I could put the textual representation of Request.Form into a
session variable, but it would be much easier if I could pass on
Request.Form so that x3.asp would be able to access it the same way as it
could if x1.asp posted directly to x3.asp.


Jul 22 '05 #2

The main point is not having to know what exactly is in Request.Form AND not
having to create forms for a simple redirect. (This latter could be
generated based on Request.Form but then I would need a javascript that
redirects a page etc. - too much work!)

"André Nobre" <Andr No***@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com...
You can use hidden fields to do this, redirecting from x2 to x3 with java
script.

"Agoston Bejo" wrote:
Hi.

x1.asp:
<form method="post" action="x2.asp"> .... </form>

x2.asp:
DoSomeAdministration()
Response.Redirect "x3.asp?" & Request.Form

x3.asp: further processsing of data
This scenario works for a certain amount of data, but passing data in
Request.QueryString has its limits.
Is there any other way so that x3.asp can retrieve the data posted in
x1.asp? I could put the textual representation of Request.Form into a
session variable, but it would be much easier if I could pass on
Request.Form so that x3.asp would be able to access it the same way as it could if x1.asp posted directly to x3.asp.


Jul 22 '05 #3
On Mon, 22 Nov 2004 11:49:33 +0100, "Agoston Bejo" <gu***@freemail.hu>
wrote:
Hi.

x1.asp:
<form method="post" action="x2.asp"> .... </form>

x2.asp:
DoSomeAdministration()
Response.Redirect "x3.asp?" & Request.Form

x3.asp: further processsing of data
This scenario works for a certain amount of data, but passing data in
Request.QueryString has its limits.
Is there any other way so that x3.asp can retrieve the data posted in
x1.asp? I could put the textual representation of Request.Form into a
session variable, but it would be much easier if I could pass on
Request.Form so that x3.asp would be able to access it the same way as it
could if x1.asp posted directly to x3.asp.


Or do your processing in x2.asp without needing to move to x3.asp. Or
even post back to x1.asp, even displaying and repopulating the form if
need be.

Jeff
Jul 22 '05 #4
Agoston Bejo wrote:
Hi.

x1.asp:
<form method="post" action="x2.asp"> .... </form>

x2.asp:
DoSomeAdministration()
Response.Redirect "x3.asp?" & Request.Form

x3.asp: further processsing of data

This scenario works for a certain amount of data, but passing data in
Request.QueryString has its limits.
Is there any other way so that x3.asp can retrieve the data posted in
x1.asp? I could put the textual representation of Request.Form into a
session variable, but it would be much easier if I could pass on
Request.Form so that x3.asp would be able to access it the same way as it
could if x1.asp posted directly to x3.asp.


Server.Execute() may be what you want.
Jul 22 '05 #5
Not exactly what I thought about, but works fine just the same.

"Michael D. Kersey" <md******@hal-pc.org> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Agoston Bejo wrote:
Hi.

x1.asp:
<form method="post" action="x2.asp"> .... </form>

x2.asp:
DoSomeAdministration()
Response.Redirect "x3.asp?" & Request.Form

x3.asp: further processsing of data

This scenario works for a certain amount of data, but passing data in
Request.QueryString has its limits.
Is there any other way so that x3.asp can retrieve the data posted in
x1.asp? I could put the textual representation of Request.Form into a
session variable, but it would be much easier if I could pass on
Request.Form so that x3.asp would be able to access it the same way as it could if x1.asp posted directly to x3.asp.


Server.Execute() may be what you want.

Jul 22 '05 #6
Well, you could solve this in a pretty generic way, by iterating over
the Request.Form collection, generating a form with corresponding
hidden variables. And in the end, you include a Javascript that simply
submits the form (rather than doing a redirect).

Consider this simple function:

ForwardForm "x3.asp"

Sub ForwardForm(pstrURL)
Dim strKey
Response.Write("<form method=""post"" action=""" & pstrURL & """
name=""forwardForm"">")
For Each strKey In Request.Form
Response.Write("<input type=""hidden"" name=""" & strKey & """
value=""" & Request.Form(strKey) & """>")
Next
Response.Write("</form>")
Response.Write("<script language=""javascript"">")
Response.Write("if (document.forwardForm)
document.forwardForm.submit();")
Response.Write("</script>")
End Sub

Please note that you might need to escape certain characters (").

Regards,
Johan

"Agoston Bejo" <gu***@freemail.hu> wrote in message news:<O0**************@TK2MSFTNGP14.phx.gbl>...
The main point is not having to know what exactly is in Request.Form AND not
having to create forms for a simple redirect. (This latter could be
generated based on Request.Form but then I would need a javascript that
redirects a page etc. - too much work!)

"André Nobre" <Andr No***@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com...
You can use hidden fields to do this, redirecting from x2 to x3 with java
script.

"Agoston Bejo" wrote:
Hi.

x1.asp:
<form method="post" action="x2.asp"> .... </form>

x2.asp:
DoSomeAdministration()
Response.Redirect "x3.asp?" & Request.Form

x3.asp: further processsing of data
This scenario works for a certain amount of data, but passing data in
Request.QueryString has its limits.
Is there any other way so that x3.asp can retrieve the data posted in
x1.asp? I could put the textual representation of Request.Form into a
session variable, but it would be much easier if I could pass on
Request.Form so that x3.asp would be able to access it the same way as it could if x1.asp posted directly to x3.asp.


Jul 22 '05 #7

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

Similar topics

6
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line...
4
by: Pavils Jurjans | last post by:
Hallo, I am working on multilingual web-application, and I have to be very sure about how the international characters are encoded and decoded in the client-server form requests. There's a...
6
by: Andy | last post by:
hI, wOULD PLEASE HELP ME. I AM GETTIGN THE REQUEST OBJECT ERROS ASP 0105: 80004005 INDEX OUT OF RANGE ERROR. HERE IS THE SNIPPET OF CODE THAT I AM USING. WHAT IS WRONG HERE? YOU CAN SEE WHAT I AM...
5
by: mvr | last post by:
Hi all IIS 5.0, ASP, and https:// I have "DataEntrypage.asp" which is a data entry page(about 250 data elements includes text boxes, radio buttons, check boxes, drop down boxes etc). ...
4
by: Zibi | last post by:
I try to use script from www.freeaspupload.net for upload file. I need to store in session object the names of uploaded files but I get an error - Cannot use Request.Form collection after...
0
by: Anders Borum | last post by:
Hello! I would like to request a new method on the XsltArgumentList class, allowing developers to check the presense of a key/value pair. If you try to add a key/value pair that has already been...
2
by: Elliot Rodriguez | last post by:
I have a form that contains a mix of dynamic controls and declared controls. All of them are intrinsic .NET controls. Several functions within the page use Request.Form to query the value of the...
8
by: abcd | last post by:
I can get the value on the form at the server side by using Request.form("max") when max field is disabled I dont get value. For GUI and business logic purpose I have disabled some fields with...
3
by: dihola | last post by:
Hi, I have a website running in IIS7 and it seems to be creating a new session for every request I make. The values I store in Session are lost with every request. This is the forms bit in my...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.