In ASP.NET, the ViewState is typically protected from tampering on the client with a signature generated by the machine secret on the server. But this protection can be easily turned off with:
<%@ Page ... EnableViewStateMac="false" %>
I'm writing an ASP.NET control that may store security-sensitive information (not secret... but it must not be tampered with), depending on whether EnableViewStateMac is true.
How can I test to see whether it's on or off at runtime?