What does the "EnableViewState" property do? Why would I
want it on or off?

Answers were Sorted based on User's Feedback



What does the "EnableViewState" property do? Why would I want it on or off?..

Answer / ramgopal reddy

It enables the viewstate on the page. It allows the page to
save the users input on a form

Is This Answer Correct ?    9 Yes 2 No

What does the "EnableViewState" property do? Why would I want it on or off?..

Answer / deepali

It allows to Store Value in viewstate and Persist the
values across postbacks

Is This Answer Correct ?    8 Yes 1 No

What does the "EnableViewState" property do? Why would I want it on or off?..

Answer / maloy.adhikari

When a form is submitted in ASP .NET, the form reappears in
the browser window together with all form values. How come?
This is because ASP .NET maintains your ViewState. The
ViewState indicates the status of the page when submitted to
the server. The status is defined through a hidden field
placed on each page with a <form runat="server"> control.
................
Maintaining the ViewState is the default setting for ASP.NET
Web Forms. If you want to NOT maintain the ViewState,
include the directive <%@ Page EnableViewState="false" %> at
the top of an .aspx page or add the attribute
EnableViewState="false" to any control.

Is This Answer Correct ?    4 Yes 1 No

What does the "EnableViewState" property do? Why would I want it on or off?..

Answer / sankar

when ever your page view state on it will take too much
responese time. that is why it is better to off the view
state if you do not require the controls to remeber its
previous state.

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

What is the difference between Debug.Write and Trace.Write? When should each be used?

2 Answers   Infosys,


How do I use response redirect?

0 Answers  


I am opening Crystal Report in asp.Net 3.5. Report is opening very well but when I click on Refresh button of Crystal Report then it gives "Missing Parameter values" I also tried property of CR Viewer like crViewer.ReuseParameterValuesOnRefresh = True But it is not working. Plz give me solution.

1 Answers  


What is postback in asp net?

0 Answers  


Below is a code extract from an ASP.Net application. The code basically reads data from the “name” field in the “members” table and prints them onto the webpage. Using the assumptions provided, fill in the 4 blanks below so that the code will run correctly. ‘Assumptions: ‘conn_str is a variable that holds the connection string to the database ‘Objects dbcomm and dbread are already declared earlier dbcomm = New OleDbCommand("SELECT name FROM members", conn_str) dbread = dbcomm._______________ _____________________ response.write(_______________) _____________________ dbread.Close()

4 Answers   Techno Solutions,






What does asp stand for in asp.net?

0 Answers  


Finally and dispose methods?

1 Answers   Microsoft,


You ve defined one page_load event in aspx page and same page_load event in code behind how will prog run?

6 Answers   TCS,


What is the function of the CustomValidator? a) It allows for custom C# client-side code to validate entries in a control. b) It allows for a custom mixture of validator controls to use one central control for the display of messages. c) It uses scripted client-side code to validate the entry in a control. d) It uses server-side code to validate the entry in a control.

4 Answers   ABC, Syntax Softtech, TCS,


How to merge 2 tables fields in DataTable in asp.net

6 Answers   Wipro,


Differnce between Control an View State

1 Answers   Proteans,


Explain About WebService

0 Answers   BirlaSoft,


Categories