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 is a ashx file?
What is viewstate in asp net with example?
What is the difference between custom controls and user controls?
What is _viewstart?
Explain different types of validators in asp.net?
Explain cookies with example.
What are the Types of chaching. How to implement caching
How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?
What is the difference between a cookie and a pixel?
Explain the use of view state?
Which two new properties are added in asp.net 4.0 page class?
What is the use of HttpHandlers? When to use this?
What permissions do asp.net applications posses by default?
What is enableviewstatemac in asp net?
How do I force the dispose method to be called automatically, as clients can forget to call dispose method?