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
Explain asp.net web forms.
What do you understand by aggregate dependency?
Why is string called immutable data type?
Where web.config file is used?
What is the difference between Hash table and Array list?
What is asp short for?
Explain about the Class view window?
What is difference between session and cookie?
What is postback in asp net?
How do cookies work? Give an example of their abuse.
What is different in .net 1.1 and .net 2.0?
In Code-Behind class which kind of code (server or client) is found ?
When using the Pager object, inorder to know which page to go, which property you have to set to grid?
How to comment out asp.net tags?
Which protocol is used to call a web service?