What does the "EnableViewState" property do? Why would I
want it on or off?
Answers were Sorted based on User's Feedback
Enable ViewState turns on the automatic state management
feature that enables server controls to re-populate their
values on a round trip without requiring you to write any
code.
This feature is not free however, since the state of a
control is passed to and from the server in a hidden form
field.
You should be aware of when ViewState is helping you and
when it is not. For example, if you are binding a control
to data on every round trip, then you do not need the
control to maintain it's view state.
ViewState is enabled for all server controls by default. To
disable it, set the EnableViewState property of the control
to false.
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / kumar saurabh
Enable ViewState turns on the automatic state management feature that enables server controls to re-populate their values on a round trip without requiring you to write any code. This feature is not free however, since the state of a control is passed to and from the server in a hidden form field. You should be aware of when ViewState is helping you and when it is not. For example, if you are binding a control to data on every round trip, then you do not need the control to maintain it's view state, since you will wipe out any re-populated data in any case. ViewState is enabled for all server controls by default. To disable it, set the EnableViewState property of the control to false.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is AutoEventWireUp and what is the use of This property explain in details?
Is asp.net a programming language or framework?
Which control would you use if you needed to make sure the values in two different controls matched?
How to Page Execute in asp.net(inside browser)
How do you change the session time-out value?
0 Answers TryTechnicals Pvt Ltd,
Which property is used to identify the Page is Post Back in ASP.NET?
0 Answers Sans Pareil IT Services,
What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
Explain Features in ASP.NET
What are different types of api?
Explain the various authentication mechanisms in asp.net.
How can you handle exceptions in asp.net?
To display data in a Repeater control which templete is provided ?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)