1 Answer

0 votes
by

View State is the method to preserve the Value of the Page and Controls between round trips. It is a Page-Level State Management technique. View State is turned on by default and normally serializes the data in every control on the page regardless of whether it is actually used during a post-back.
 

A web application is stateless. That means that a new instance of a page is created every time when we make a request to the server to get the page and after the round trip our page has been lost immediately
 
Features of View State

These are the main features of view state,
  1. Retains the value of the Control after post-back without using a session.
  2. Stores the value of Pages and Control Properties defined in the page.
  3. Creates a custom View State Provider that lets you store View State Information in a SQL Server Database or in another data store.

Advantages of View State

  1. Easy to Implement.
  2. No server resources are required: The View State is contained in a structure within the page load.
  3. Enhanced security features: It can be encoded and compressed or Unicode implementation.

Related questions

0 votes
0 votes
    Describe application state management in ASP.NET?...
asked Apr 7, 2021 in Education by JackTerrance
0 votes
    What are the different Session state management options available in ASP.NET?...
asked Apr 6, 2021 in Education by JackTerrance
0 votes
    What are various ways of doing alignment in WPF?...
asked Apr 9, 2021 in Education by JackTerrance
0 votes
    What is XAML in WPF and also explain the types of XAML?...
asked Apr 9, 2021 in Education by JackTerrance
0 votes
    What is the difference between MVP, MVC and MVVM?...
asked Apr 9, 2021 in Education by JackTerrance
...