What is advantage of viewstate and what are benefits ?

Answer Posted / arunendra shukla

When a form is submitted in classic ASP, all form values are cleared. Suppose you have submitted a form with a lot of information and the server comes back with an error. You will have to go back to the form and correct the information. You click the back button, and what happens.......ALL form values are CLEARED, and you will have to start all over again! The site did not maintain your ViewState.With ASP .NET, the form reappears in the browser window together with all form values.This is because ASP .NET maintains your ViewState. The ViewState indicates the status of the page when submitted to the server.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is session cookies stored?

613


What is gridview in asp.net?

594


What is postback and autopostback in asp.net?

629


Will session work if cookies is disabled?

624


Mention few asp.net validators.

653






Describe the difference between inline and code behind - which is best in?

604


Can you explain composite pattern?

685


i develop a web application and i gave security setting i.e autherization and athentication now it work properly on my local system , now question is ,is this security setting ie autherization and athentication which i gave in web.config will it be enough strong to secure my application on internet or i have to use some 3rd party tool or software to get security .if yes --how ? if no--what is the alternate?

1619


How can you pass multiple complex types in Web API?

672


What is dynamic web page with example?

606


What is the difference between a multi-layer and multi-tier applications?

669


How does session authentication work?

590


How can we register exception filter globally?

687


What is the difference between the asp and asp.net?

583


What are session state modes?

654