473,404 Members | 2,213 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,404 software developers and data experts.

Passing parameters from one form to another

Is there code that I can use to 'repeat' code.

For example:

I have a form that has about 30 fields on it. I then submit it to another
form that has about 20 fields on it. I then submit the second form to a
third and so on. During this process, I pass all of the fileds as Hidden
Fields. My code has over 200 hidden fileds in it and sometimes they get
mis-spelled or somthing. I thought that I saw something that you can tell
the page to 'repeat' certain code for all parameters on the page by using a
FOR EACH command.

Is this possible?

Mikeal

Jul 19 '05 #1
2 4124
"Mike" <mike4532> wrote in message
news:OE**************@TK2MSFTNGP09.phx.gbl...
Is there code that I can use to 'repeat' code.

For example:

I have a form that has about 30 fields on it. I then submit it to another
form that has about 20 fields on it. I then submit the second form to a
third and so on. During this process, I pass all of the fileds as Hidden
Fields. My code has over 200 hidden fileds in it and sometimes they get
mis-spelled or somthing. I thought that I saw something that you can tell
the page to 'repeat' certain code for all parameters on the page by using a FOR EACH command.


For Each item In Request.Forms
Response.Write( "<input type=""hidden"" name=""" & item & """ value="""
& Request.Form(item) & """>" )
Next
Hope this helps.
Regards,
Peter Foti
Jul 19 '05 #2

dim f
for each f in request.form
response.write "<input type=hidden name=" & f & " value=""" & request.form(f) & """>"
next

cheers, monkey

On Tue, 2 Dec 2003 10:28:47 -0700, "Mike" <mike4532> wrote:
Is there code that I can use to 'repeat' code.

For example:

I have a form that has about 30 fields on it. I then submit it to another
form that has about 20 fields on it. I then submit the second form to a
third and so on. During this process, I pass all of the fileds as Hidden
Fields. My code has over 200 hidden fileds in it and sometimes they get
mis-spelled or somthing. I thought that I saw something that you can tell
the page to 'repeat' certain code for all parameters on the page by using a
FOR EACH command.

Is this possible?

Mikeal


Jul 19 '05 #3

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

Similar topics

1
by: Mike Wimpe | last post by:
Without creating a form, how do i pass a value to another script? I would like to pass: group = "Oranges" to another script or at least just 'group' and initialize it in the first script. ...
2
by: zlatko | last post by:
There is a form in an Access Project (.adp, Access front end with SQL Server) for entering data into a table for temporary storing. Then, by clicking a botton, several action stored procedures...
3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
3
by: Joe Bloggs | last post by:
Does anyone know if its possible to pass parameters or the values of Request.QueryString from a web page to a custom control class? I'm using a C# Web Application. For Example I have Web Page1...
11
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
3
by: JJ | last post by:
Hi, I need to pass a dataset to another win form along with a SqldataAdapter. I don't want to recreate the SqlDataAdapter again either. So to pass to another Win form in my windows form app, do...
8
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
4
by: David Freeman | last post by:
Hi There! I'm just wondering if there's a way to pass parameters (as if you were passing parameters to a ASCX web control) when calling an ASPX page? e.g. MyDetailsPage.UserName = "david" ...
13
by: Deano | last post by:
Apparently you can only do this with one value i.e Call MyAssetLocationZoom(Me!txtLocation, "Amend data") This runs; Public Sub MyAssetLocationZoom(ctl As Control, formName As String) On...
4
by: MicroMoth | last post by:
Hi, I'm trying to write a update method, in which when the user clicks the update button the update method is passed 10 form fields. Then a update SQL is run to update the database. My question...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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...
0
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,...

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.