Friday, September 27, 2013

Variable persistence on postback asp net

An ASP.NET page class file is destroyed after it is served to the client. The most chosen method for preserving variables in ASP.NET from one page load to the next is to store them in
  • ViewState
    • Small data for current page only
  • Session
    • Small or large data for across the web site or app
  • Hidden Input 
    • Small data for current page only
  • Cookies
    • Small data for long time across the website or app
  • Cache 
    • Small or large data for across the website or app

No comments:

Post a Comment