Private Variables in a WebForm

Discussion in 'ASP .Net' started by Manuel, Nov 30, 2004.

  1. Manuel

    Manuel Guest

    If I modify the value of a Private Variable in a web form and the user
    clicks a button, the variable resets. How can I maintain an object (not just
    a text) for the lengh of the web application?
     
    Manuel, Nov 30, 2004
    #1
    1. Advertising

  2. The Session object can store any type of object:

    Session("MyObj") = myObject

    Travis Murray
    MCSD, MCT
    Artiem Consulting, Inc.
    http://www.artiem.com
    Learn ASP.Net In Jamaica in 2005!
    Visit http://www.artiem.com/jamaica.aspx for more details.


    "Manuel" <> wrote in message
    news:...
    > If I modify the value of a Private Variable in a web form and the user
    > clicks a button, the variable resets. How can I maintain an object (not

    just
    > a text) for the lengh of the web application?
    >
    >
     
    Travis Murray, Nov 30, 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. titof
    Replies:
    0
    Views:
    515
    titof
    Jul 24, 2003
  2. timmso
    Replies:
    1
    Views:
    500
    Alex Papadimoulis
    Dec 12, 2003
  3. =?Utf-8?B?bXN1aw==?=

    Using one webform to set a value on another webform

    =?Utf-8?B?bXN1aw==?=, Jul 12, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    470
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jul 12, 2006
  4. Jeremy Bowers
    Replies:
    3
    Views:
    516
    Steven Bethard
    Jan 24, 2005
  5. Gregor Kofler
    Replies:
    6
    Views:
    213
    Gregor Kofler
    Jun 27, 2008
Loading...

Share This Page