Related Posts Plugin for WordPress, Blogger...

About

Follow Us

Showing posts with label Client Side state management. Show all posts
Showing posts with label Client Side state management. Show all posts

Thursday, 19 March 2015

In this article I will give you overview of State management in Asp.NET. I will try to cover both types of state management in this article i.e. client side and Server Side.
 
State management is a technique by which we can maintain the state of web page, controls and objects over multiple requests for same or different pages. All the Asp.net web application is stateless.
 
Hyper Text Transfer Protocol (HTTP) is a stateless protocol. It doesn’t hold the state of previous website that we visited before closing our browser that is called state less.
 
So to maintain state of object, we use State management techniques in asp.net websites.
 
Types of State Management:
 
There are two types of state management:
 
 1.  Client Side state management
 
 2.  Server side state management
 
 
Client Side state management:
I this type of state-management information will be stored on client’s machine.
 It does not use the server resources and store the information in html page, HTTP request or on disk cache of machine. Data is not secure in this type of state management, but faster than server side in performance and also support for multiple browsers. 
 
Type of Client side state management:
 
a) View-State
 
b) Hidden fields
 
c) Cookies
 
d) Query string
 
e) Control state 
 
Server Side state management:
 
In this type of state management information will be stored on server. Server side state management provides better security and reduces the bandwidth. But it is slow when compared to client side management.
 
Following are the Server side state management option that we use:
 
a) Session State
 

b) Application State

Friday, 6 February 2015

What is cookie?

Practically, cookie is a small text file sent by web server and saved by web browser on client machine. A cookie is a small piece of text file stored on user's computer in the form of name-value pair. We use cookies to small information on client’s computer. Common use of cookies is to remember users between visits.
Cookies are used by websites to keep track of visitors e.g. to keep user information like username etc. If any web application using cookies, Server send cookies and client browser will store it. The browser then returns the cookie to the server at the next time the page is requested. The most common example of using a cookie is to store User information, User preferences, Password Remember Option etc.