سؤال

where is session state, application state in page life cycle?

هل كانت مفيدة؟

المحلول

Did you read ASP.NET Page life cycle -
http://msdn.microsoft.com/en-us/library/ms178473.aspx

نصائح أخرى

The Session and Application states are independent of the page lifecycle and can be accessed at any point during the page lifecycle.

Objects or variables which you store in session/application state will be persisted across postbacks on the server. Once they are there, they stay there, for the duration of the client session (in the case of SessionState) or for the duration of the application (in the case of ApplicationState).

This probably takes a few liberties in terms of accuracy but this is how I generally think of this mechanism as working.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top