Variable scope

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
 
G

George Zacharias

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

George Zacharias.
 
S

Steve C. Orr, MCSD

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.
 
D

David Waz...

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top