Variable scope

  • Thread starter Thread starter Vincent V
  • Start date Start date
V

Vincent V

What type of variable can you use that lasts between page refreshes is it
possible or do i have to use session or a hidden field

thanks
 
You can also try Viewstate["yourkey"] = "value" if you have viewstate
enabled.

George Zacharias.
 
Normally you'd use Session state, or Viewstate, or the Application object,
or the Cache object, or Cookies. A hidden field could also work. They all
have their trade offs.
 
Vincent,

it's called "buy a basic book on asp/aspx"
or read the included on-line documentation. Some questions are just so
basic that IMHO they don't belong here.
 
Back
Top