Wednesday, August 8, 2012

1.Why we need State management to maintain state in Asp.Net?

 Asp.Net Pages are destroyed and re-created with each round trip to the server; therefore, page information will not exist beyond the life cycle of a single page. 


2. What are different state management techniques available in .Net?

Asp.Net provides multiple ways to maintain state between server round trips this can be either client side or server side.

Client Side State Management options:
Storing page information using client-side options doesn't use server resources.
  • View state
  • Control state
  • Hidden fields
  • Cookies
  • Query strings
Server side state management options:
  • Application state
  • Session state
  • Profile properties

No comments: