View state,Application and session

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Jun 2008
Posts: 20
Reputation: versatile36 is an unknown quantity at this point 
Solved Threads: 0
versatile36 versatile36 is offline Offline
Newbie Poster

View state,Application and session

 
0
  #1
Jun 16th, 2009
What is the purpose of view state,application and session and what is the difference among them?? i googled it but couldn't get exact idea .. i'm just a beginner.. help me plz
http://www.techfancy.co.cc | A Technology guide
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 124
Reputation: thewebhostingdi has a little shameless behaviour in the past 
Solved Threads: 11
thewebhostingdi thewebhostingdi is offline Offline
Junior Poster

Re: View state,Application and session

 
1
  #2
Jun 16th, 2009
View state is to store information temporarily. The life time is limited to the life time of the particular page. It is generally used to store the page fields.

Application state is global to the application regardless of the number of application instances. All instances share the same application state variables.

Each instance has its own session variables. They are stored at the server end. One use of session is to store the user login status, its privileges, etc.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,721
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 501
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: View state,Application and session

 
0
  #3
Jun 16th, 2009
HTTP is a stateless request-response protocol. In other words, client sends a request and the server responds. The state of client and server are not maintained or altered by the exchange and no record of the request is kept.

For implementing flexible business transactions across multiple requests and responses, we need two facilities:

1. Session - The server should be able to identify that a series of request from a single client from a single working "session".
2. State - The server should be able to remember information related to previous requests and other business decisions.

ASP.NET State Management includes:
1. Server side state management
Application, Session, Cache, Profile are objects used to manage
state at server side.
2. Client side state management
Cookies, Querystring, Hidden Fields, ViewState are example of
Client side state management.

You must read MSDN online pages for "ASP.NET State Management"
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 20
Reputation: versatile36 is an unknown quantity at this point 
Solved Threads: 0
versatile36 versatile36 is offline Offline
Newbie Poster

Re: View state,Application and session

 
0
  #4
Jun 17th, 2009
@thewebhostingdi

I'm very much thank full to you for answering my each and every query

@adatapost

you really gave me a nice over view ...thank you very much!!
http://www.techfancy.co.cc | A Technology guide
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 787 | Replies: 3
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC