What does the "EnableViewState" property do? Why would I
want it on or off?
Answers were Sorted based on User's Feedback
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 |
Answer / deepali
It allows to Store Value in viewstate and Persist the
values across postbacks
Is This Answer Correct ? | 8 Yes | 1 No |
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 |
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 |
what is synchronization and asynchronization. what are the difference between two?
How you will handle session when deploying application in more than a server?
what is use of doctype tag in asp.net
Why SessionID changes in every request in asp.net?
What are the benefits of view state?
what are the main advantage in .net?
How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.
What is the flow of processing of the request? : asp.net mvc
How do you identify that the page is postback?
Define tracing.
What is the difference between response.redirect and server.transfer, how to choose one among the other?
About Global .asax ?