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
Is asp.net a programming language?
Describe the master page.
What is the use of asp.net web api?
I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)
What is HTTPModule and HTTPcontext? What is the use of each?
What is the differences between a primary key and a unique key in sql server?
What is custom attribute? How to create?
Can I recieve both html markup for page and code in the asp.net web page's source code portion in the web browser?
Explain the benefits of viewstate?
when a request is made in Life cycle of ASP.NET page .
What is parse in asp.net?
What is the concepts of globalization and localization in .net?
How can you handle exceptions in asp.net?
What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?
What is the difference between ASP Session State and ASP.Net Session State?