Preserving variable data during postback

  • Thread starter Thread starter Dahab
  • Start date Start date
D

Dahab

Hi,
What is the best way to preserve variable data during postback?
Using hidden server controls is a way, but there has to be something better.


Thanks
D.
 
There are loads of different techniques, it depends on your data is and
how it's going to be used. Some of the options are:

- QueryString
- Viewstate
- Session object
- Cookies collection
- Cache object
- Application object

Search Google for "asp.net state management" for more info.
 

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

Back
Top