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 security types in asp.net?
what are the Custom controls in asp.net?
How do I use a proxy server when invoking a web service?
How can we Validate a Controls in ASP.NET page using JavaScript?
Explain global assembly cache.
Explain managed code an un-managed code.
How many types of state management are there in asp net?
What is the life cycle of an asp.net page?
how to retrieve property settings from xml .config file.
What are the differences between the response.write() and response.output.write()?
Which asp.net objects encapsulate the state of the client and the browser?
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
Define application state variable and session state variable?
what is a .xap file? Explain with an example.
What ports must be open for DCOM over a firewall? What is the purpose of Port 135?