What is advantage of viewstate and what are benefits ?



What is advantage of viewstate and what are benefits ?..

Answer / 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

More ASP.NET Interview Questions

What are ASP.NET Web Forms? How is this technology different than what is available though ASP?

1 Answers   BirlaSoft,


What are Master Pages in ASP.NET?

0 Answers  


ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?

0 Answers  


Explain the differences between Server-side and Client-side code?

3 Answers  


What namespace does the Web page belong in the .NET Framework class hierarchy?

3 Answers   Siebel Systems,






Differentiate between client-side and server-side validations in web pages.

0 Answers  


what is wwf in asp.net?

3 Answers  


How do you create a master page?

0 Answers  


Difference between ADO.net Dataset , ADO Record Set & ADO Data Reader?

3 Answers   HCL, NIIT,


How would you get asp.net running in apache web servers?

0 Answers  


Does asp.net still recognize the global.asa file?

0 Answers  


What are Session states available and its Uses?

2 Answers   iLogic,


Categories