Showing posts with label Context.handler. Show all posts
Showing posts with label Context.handler. Show all posts

Tuesday 17 January 2012

Querystring,cookies,View state,session state,application state,Context.handler

What are the ways to retain variables between requests?





Below there are different ways to retain variables between requests. That is:

Context.Handler: This object can be used to retrieve public members of the webform 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 use, we can't use it to send any secured data.

Cookies: Cookies stores small amount of information on client side. But we can't reply on cookies since many clients can refuse cookies.

View state: View state stores items added to the pages. These properties are 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.