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

Home Posts Topics Members FAQ

Forwarding the Request.Form collection

Hi.

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

x2.asp:
DoSomeAdministr ation()
Response.Redire ct "x3.asp?" & Request.Form

x3.asp: further processsing of data
This scenario works for a certain amount of data, but passing data in
Request.QuerySt ring 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 2284
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:
DoSomeAdministr ation()
Response.Redire ct "x3.asp?" & Request.Form

x3.asp: further processsing of data
This scenario works for a certain amount of data, but passing data in
Request.QuerySt ring 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***@discussio ns.microsoft.co m> wrote in message
news:A9******** *************** ***********@mic rosoft.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:
DoSomeAdministr ation()
Response.Redire ct "x3.asp?" & Request.Form

x3.asp: further processsing of data
This scenario works for a certain amount of data, but passing data in
Request.QuerySt ring 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:
DoSomeAdminist ration()
Response.Redir ect "x3.asp?" & Request.Form

x3.asp: further processsing of data
This scenario works for a certain amount of data, but passing data in
Request.QueryS tring 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:
DoSomeAdministr ation()
Response.Redire ct "x3.asp?" & Request.Form

x3.asp: further processsing of data

This scenario works for a certain amount of data, but passing data in
Request.QuerySt ring 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******** ********@TK2MSF TNGP14.phx.gbl. ..
Agoston Bejo wrote:
Hi.

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

x2.asp:
DoSomeAdministr ation()
Response.Redire ct "x3.asp?" & Request.Form

x3.asp: further processsing of data

This scenario works for a certain amount of data, but passing data in
Request.QuerySt ring 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(pst rURL)
Dim strKey
Response.Write( "<form method=""post"" action=""" & pstrURL & """
name=""forwardF orm"">")
For Each strKey In Request.Form
Response.Write( "<input type=""hidden"" name=""" & strKey & """
value=""" & Request.Form(st rKey) & """>")
Next
Response.Write( "</form>")
Response.Write( "<script language=""java script"">")
Response.Write( "if (document.forwa rdForm)
document.forwar dForm.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******* *******@TK2MSFT NGP14.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***@discussio ns.microsoft.co m> wrote in message
news:A9******** *************** ***********@mic rosoft.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:
DoSomeAdministr ation()
Response.Redire ct "x3.asp?" & Request.Form

x3.asp: further processsing of data
This scenario works for a certain amount of data, but passing data in
Request.QuerySt ring 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
10326
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 120''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
4
10551
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 great article about the issue: http://ppewww.ph.gla.ac.uk/~flavell/charset/form-i18n.html Generally, that states that this are is filled with landmines. From my tests
6
6876
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 TRYING TO DO ADN ERROR ON THIS LINK: http://www.walani.com/ProjectFiles/01_main.asp. PLEASE HELP <% Dim iQuestions 'Holds the question
5
3561
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). After the data validation through javascript(form.action = "ProcessData.asp" )I post this page to "ProcessData.asp" which process all
4
5907
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 calling BinaryRead How can I make it? Part of this script: <form name="frmSend" method="POST" enctype="multipart/form-data" action="upload_file.asp" onSubmit="return onSubmitForm();"> <span>File 1 :</span> <input type="file" name="file" size="35"
0
3094
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 defined in the list, an exception is thrown. Rather than using the "GetParam" method, it would be usefull to have a method called ".Exists" available on the XsltArgumentList. I think this allows for cleaner and more readable code. Or, perhaps...
2
1582
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 dynamic controls when the page is posted back. I also have a server side function that validates data ensuring it falls within a given range after the post back. If the range is not valid, I am Throw-ing a new Exception object; the validation...
8
3074
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 the values, but when I update Request.form does not return me anything for disabled fields. How to read disabled fields at the server side
3
4991
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 web.config: <authentication mode="Forms"> <forms name=".ReMaCRM" loginUrl="~/Login.aspx" defaultUrl="~/Default.aspx" cookieless="AutoDetect" domain="" timeout="10" protection="All" /> </authentication>
0
8234
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
8620
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...
1
8335
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6110
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
5563
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2605
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
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
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.