473,473 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

EnableViewStateMAC defalult value

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?
Nov 17 '05 #1
2 6840
Default is true.

For more details 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

"john" <jo**@john.com> wrote in message
news:01****************************@phx.gbl...
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?

Nov 17 '05 #2
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?
.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: cwizard | last post by:
I'm calling on a function from within this form, and there are values set but every time it gets called I get slammed with a run time error... document.frmKitAmount.txtTotalKitValue is null or not...
3
by: Simang | last post by:
Hi, I am trying to encrypt viewstate in my ASP.NET web site. I put these items in the web.config.. <pages enableViewStateMac="true" /> <machineKey validation="3DES"/> However, when I tried...
0
by: Simang | last post by:
Hi, Im just wondering, I set the enableViewStateMAC to true and the machineKey validation to 3DES is my web.config. How do I test my asp.net pages if its really working? Thanks! Mayet
2
by: A.M | last post by:
Hi, How can I turn on enableViewStateMac in all pages in the application in web.config rather than each single <@Page> directive? Thanks, Alan
5
by: fm | last post by:
We are using ASP.NET State Server in our applications to protect session state from machine.config and IIS recycles. We also may cluster the servers in the future. We don't have the resources to...
1
by: Tony Stiles | last post by:
Hi. I am running an ASP.NET app that is using ViewState. Everything is fine apart from an issue with viewstate. Is the client IP address taken into account in encrypting viewstate? Here is...
1
by: John Grandy | last post by:
Could someone please provide the exact modification I need to make to web.config to set EnableViewStateMAC=True Thanks.
1
by: obitoo | last post by:
I have an application that requires one page to have the EnableViewStateMac set to false as I have another page posting to this page. This is set in the page directive and works fine on my local...
1
by: xamman | last post by:
hi there, i am busy coding a fix for Santa's package labelling system. i have come across some wierd behaviour with enableViewStateMac on this server. this web has a page a.aspx with a textbox...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.