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
What's the use of formatters in .net?
What is a master page and what does it do?
Define the steps to set up validation control.
What is asp according to you?
What are server activated objects?
Explain the steps needed to be performed in order to create an animation in xaml?
How to reduce the width of textbox in editcommandcolumn of datagrid?
Explain MVC model binders?
Can we store object in viewstate?
What is css in asp.net?
What are the main requirements for caching?
Is asp.net web forms dead?
How does output caching work in ASP.NET?
Less than one page, how many windows will you be able to maintain?
What is query string in asp.net?