States in ASP DOT NET

What do you understand by the term states in ASP.NET?

E

Expert

Verified

State eliminates the problem of losing state data because of reloading of the Web page. Using states in the Web application, we can preserve state of an application either at a server or at a client end. State of the Web application helps us to store runtime modifications which have been made to a Web application. Like, a change in a data source of a Web application may be initiated by the user when he/she chooses and saves some products in a shopping cart. 

If we are not using the states, modifications are discarded and are not saved. The whole concept of storing the states is optional. But, under certain situation, using states with applications is very important. Such as, it is necessary to store states for the Web applications, like in an e-commerce shopping site or an Intranet site of a company, to maintain track of requests of users for the items they have chosen on shopping site.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.