What does the "EnableViewState" property do? Why would I
want it on or off?
Answer Posted / 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 |
Post New Answer View All Answers
What is a uri query?
What do you understand by aggregate dependency?
How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC
What is the significance of attaching a profile while creating a user?
Describe in brief .net framework and its components.
How do you identify that the page is postback?
What is the behavior of a Web browser when it receives an invalid element?
Explain the features that make asp.net more used framework? : asp.net mvc
Can we make activex dll also ti execute in some process as that of client ? How can we do?
What are html helpers in asp.net?
What are strong names?
Explain the main function of razor in asp.net? : asp.net mvc
Explain the main differences between asp and asp.net?
Are xaml file compiled or built on runtime?
Describe session handling in a webfarm, how does it work and what are the limits?