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

Explain asp.net web forms.

568


What do you understand by aggregate dependency?

618


Why is string called immutable data type?

596


Where web.config file is used?

576


What is the difference between Hash table and Array list?

376






What is asp short for?

566


Explain about the Class view window?

596


What is difference between session and cookie?

522


What is postback in asp net?

565


How do cookies work? Give an example of their abuse.

545


What is different in .net 1.1 and .net 2.0?

578


In Code-Behind class which kind of code (server or client) is found ?

599


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

567


How to comment out asp.net tags?

634


Which protocol is used to call a web service?

569