I'm tired of including
EnableViewStateMac="false"
in every page. How to do that globally?
You can disable it on the <pages>
element in the web.config, like this:
<configuration>
<system.web>
<pages enableViewStateMac="False" />
</system.web>
</configuration>
The answer above explain to you how to set it in the Web.Config, but look at MSDN and you will see what it says here:
This attribute should never be set to false in a production Web site, even if the application or page does not use view state. The view state MAC helps ensure the security of other ASP.NET functions in addition to view state.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With