ASP.NET Client-side state management and Server-side state management

Ask a question
          

Client-side state management and Server-side state management

<<Previous   Next>>

ASP.NET - Client-side state management and Server-side state management - Dec 25, 2009 at 19:55 PM by Nishant Kumar

Define Client-side state management and Server-side state management. 

Client-side state management
This maintains information on the client's machine using Cookies, View State, and Query Strings.

Cookies.
A cookie is a small text file on the client machine either in the client's file system or memory of client browser session. Cookies are not good for sensitive data. Moreover, Cookies can be disabled on the browser. Thus, you can't rely on cookies for state management.

View State
Each page and each control on the page has View State property. This property allows automatic retention of page and controls state between each trip to server. This means control value is maintained between page postbacks. Viewstate is implemented using _VIEWSTATE, a hidden form field which gets created automatically on each page. You can't transmit data to other page using view state.

Querystring
Querystring can maintain limited state information. Data can be passed from one page to another with the URL but you can send limited size of data with the URL. Most browsers allow a limit of 255 characters on URL length.

Server-side state management
This kind of mechanism retains state in the server.

Application State
The data stored in an application object can be shared by all the sessions of the application. The application object stores data in the key value pair.

Session State
Session state stores session-specific information and the information is visible within the session only. ASP.NET creates unique sessionId for each session of the application. SessionIDs are maintained either by an HTTP cookie or a modified URL, as set in the application's configuration settings. By default, SessionID values are stored in a cookie.

Database
Database can be used to store large state information. Database support is used in combination with cookies or session state.
 

<<Previous   Next>>
Explain the ways of authentication techniques in ASP.NET

Selection of an authentication provider is done through the entries in the web.config file for an application.The modes of authentication are:.........

Difference between Datagrid, Datalist and repeater.

Datagrid: The HTML code generated has an HTML TABLE element created for the particular DataRow and is a tabular representation with Columns and Rows. Datagrid has a in-built support for Sort, Filter and paging the Data...........

What is Authorization in ASP.NET?

Authorization is a process that takes place based on the authentication of the user........
 



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
 
Home | Login | About us | Sitemap | Contact us