Groups | Blog | Home
all groups > asp.net building controls > july 2003 >

asp.net building controls : Passing form elements between forms


Mathew George
7/7/2003 2:02:13 PM
Hello all,

I have two forms form1.aspx and form2.aspx.
I need to reterive all the form elements from form1 into form2.
In Form1.aspx n number of controls are created at runtime, and on click of
one button form2.aspx is called using server.transfer.
While retrieving i want to retrieve all the form elements in form2.

How do i do it.

I can retrieve the form elemets by giving the page Form1 as class and
creating property for each elements.
In form2 i reference the page Form1 and get the element value.

How can i get all the form elemts in form2.............help please

Mathew

Victor Garcia Aprea [MVP]
7/7/2003 9:50:38 PM
Hi Mathew,

Take a look at http://www.aspalliance.com/kenc/passval.aspx

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.

[quoted text, click to view]

AddThis Social Bookmark Button