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
How many types of cache are there?
How does the cookies work in asp.net?
If we remove web.config or machine.config from the application then, is this application will works?
What is base class of .net?
Why we use asp.net for website development?
Explain exception handling in .net.
Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.
How can we Validate a Controls in ASP.NET page using JavaScript?
What are url fragments?
List the asp.net validation controls?
What is difference between singleton and single call?
How would ASP and ASP.NET applications run at the same time on the same server?
What is custom attribute? How to create?
How can we identify that the Page is Post Back?
What is page request in asp.net?