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

Is asp.net a programming language?

534


Describe the master page.

554


What is the use of asp.net web api?

582


I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)

1493


What is HTTPModule and HTTPcontext? What is the use of each?

1995






What is the differences between a primary key and a unique key in sql server?

536


What is custom attribute? How to create?

543


Can I recieve both html markup for page and code in the asp.net web page's source code portion in the web browser?

538


Explain the benefits of viewstate?

588


when a request is made in Life cycle of ASP.NET page .

532


What is parse in asp.net?

555


What is the concepts of globalization and localization in .net?

530


How can you handle exceptions in asp.net?

560


What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?

748


What is the difference between ASP Session State and ASP.Net Session State?

583