Passing server controls between forms

Discussion in 'ASP .Net' started by Mathew George, Jul 7, 2003.

  1. 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
     
    Mathew George, Jul 7, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. terry
    Replies:
    1
    Views:
    564
    William F. Robertson, Jr.
    Jul 7, 2003
  2. cgia
    Replies:
    5
    Views:
    985
    Steve C. Orr, MCSD
    Jul 26, 2003
  3. Scott Zabolotzky

    Problem passing custom object between forms

    Scott Zabolotzky, Oct 23, 2003, in forum: ASP .Net
    Replies:
    6
    Views:
    610
    Jim Cheshire [MSFT]
    Oct 24, 2003
  4. =?Utf-8?B?bXN5ZXo=?=

    passing data between forms in the "cleanest" OO way?

    =?Utf-8?B?bXN5ZXo=?=, Feb 5, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    448
    Felbrigg
    Feb 5, 2004
  5. Aitham alama

    Passing Variables between web forms

    Aitham alama, Jul 9, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    469
    DalePres
    Jul 10, 2004
  6. Mani P.S via .NET 247

    Passing values between forms

    Mani P.S via .NET 247, Apr 1, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    707
    Steve C. Orr [MVP, MCSD]
    Apr 1, 2005
  7. thomson

    Passing Data Between Forms

    thomson, Jul 3, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    452
    Steve C. Orr [MVP, MCSD]
    Jul 3, 2006
  8. Eric
    Replies:
    2
    Views:
    926
Loading...