943,589 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 1430
  • ASP.NET RSS
Jun 16th, 2009
0

View state,Application and session

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
versatile36 is offline Offline
23 posts
since Jun 2008
Jun 16th, 2009
1

Re: View state,Application and session

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.
Reputation Points: 3
Solved Threads: 14
Junior Poster
thewebhostingdi is offline Offline
168 posts
since Jun 2009
Jun 16th, 2009
0

Re: View state,Application and session

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"
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008
Jun 17th, 2009
0

Re: View state,Application and session

@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!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
versatile36 is offline Offline
23 posts
since Jun 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: need to know
Next Thread in ASP.NET Forum Timeline: Setting Multilingual Font for text box





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC