You can set it in Page directive or web.config as well.
<pages buffer="true|false"
enableSessionState="true|false|ReadOnly"
enableViewState="true|false"
enableViewStateMac="true|false"
autoEventWireup="true|false"
smartNavigation="true|false"
pageBaseType="typename, assembly"
userControlBaseType="typename"
validateRequest="true|False"/>
Even though docs claim the default is false, it is actually true.See:
http://msdn.microsoft.com/msdnmag/is...2/CuttingEdge/
--
Teemu Keiski
MCP, Designer/Developer
Mansoft tietotekniikka Oy
http://www.mansoft.fi
AspInsiders Member,
www.aspinsiders.com
ASP.NET Forums Moderator,
www.asp.net
AspAlliance Columnist,
www.aspalliance.com
"Tap" <em***@email.com> wrote in message
news:0a****************************@phx.gbl...
John,
When i searched it using MSDN this is what it says.....
"This member supports the .NET Framework infrastructure
and is not intended to be used directly from your code."
and after that i tried using
Page.EnableViewstateMAC = false in my code, and it says
its not accessible in this content because it is protected.
Hope this helps.
Thanks,
Tap
-----Original Message-----
Is this value default true or false. i've read its true
in two different books and false in MSDN. does anyone
know which it is?
.