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

How many webforms are possible on a single webpage?

6 Answers  


How Clustered Index and Non clustered index stored on SQL server?

2 Answers   TCS,


If I am developing an application that must accomodate multiple security levels though secure login and my asp.net web application is spanned across three web-servers (using round-robin load balancing). What would be the best approach to maintain login-in state for the users?

0 Answers  


What is the main function of url routing system in asp.net mvc? : asp.net mvc

0 Answers  


What is the purpose of the following segment? If ( !IsPostBack) { sqldataAdapter1.Fill (dsusers1); DataGrid1.DataBind (); } a) To populate the DataAdapter the first time the web page id displayed. b) To populate the DataSet every time the web page is displayed. c) To populate the DataAdapter every time the web page is displayed. d)To populate the DataSet the first time the web page is displayed.

2 Answers   Syntax Softtech,






What is different in .net 1.1 and .net 2.0?

0 Answers  


What is session management in web application?

0 Answers  


Types of state management techniques ?

6 Answers   Digital GlobalSoft,


What are typed datasets?

1 Answers   IBS,


Less than one page, how many windows will you be able to maintain?

0 Answers   Atos Origin,


Write a code snippet to implement the indentation in json in web api.

0 Answers  


what are the events raised in asp.net page life cycle?in which stage view state can be loaded?

0 Answers   EDS,


Categories