What are the ways to retain variables between requests?Following are the ways to retain variables between requests:
Context.Handler This object can be used to retrieve public members of the web form from a subsequent web page.
Querystring Querystring is used to pass information between requests as part of the web address. Since it is visible to the use, we can't use it to send any secured data.
Cookies Cookies are stored small amount of information on a client. But we can't rely on cookies since many clients can refuse cookies.
View state View state stores items added to a page’s ViewState property as hidden fields on the page.
Session state Session state stores items that are local to the current session.
Application state Application state stores items that are available to all users of the application.
|