What are the ways to retain variables between requests?

 Posted by Tripati_tutu on 10/12/2010 | Category: .NET Framework Interview questions | Views: 4775 | Points: 40

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.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response