Passing Variables

Discussion in 'ASP .Net' started by James, Jun 13, 2004.

  1. James

    James Guest

    Hi. I need to be able to pass a few variables on a button click to refill a
    form on a new page. I am using a few textbox's but when the button is
    clicked the values are lost - I am convinced that these variables are being
    disposed - but why? - and how can I fix it.

    thanks
    James
     
    James, Jun 13, 2004
    #1
    1. Advertising

  2. James

    DalePres Guest

    And make sure you're not resetting the values in your Page_Load by testing
    for !IsPostBack before initializing any values. Keep in mind that Page_Load
    runs before your button event.

    Dale

    "James" <> wrote in message
    news:cahrpo$4lt$...
    > Hi. I need to be able to pass a few variables on a button click to refill

    a
    > form on a new page. I am using a few textbox's but when the button is
    > clicked the values are lost - I am convinced that these variables are

    being
    > disposed - but why? - and how can I fix it.
    >
    > thanks
    > James
    >
    >
     
    DalePres, Jun 13, 2004
    #2
    1. Advertising

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. Victor Bazarov
    Replies:
    25
    Views:
    945
    E. Robert Tisdale
    Mar 23, 2005
  2. Replies:
    9
    Views:
    997
  3. pereges
    Replies:
    7
    Views:
    456
    pereges
    Jun 1, 2008
  4. Ramon F Herrera
    Replies:
    8
    Views:
    499
    Pascal J. Bourguignon
    Sep 13, 2009
  5. deadpickle
    Replies:
    1
    Views:
    1,057
    Jens Thoms Toerring
    Nov 7, 2010
Loading...

Share This Page