
452
|
Chapter 20: web.config Reference
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Child Elements
None
Notes
For web farms, ensuring that the validationKey and decryptionKey values are
synchronized across all servers in the farm is important. If they are not synchro-
nized, you may get errors in Forms Authentication, ViewState errors, or problems
with session state.
<pages>
<pages
buffer=boolean
enableSessionState="true|false|ReadOnly"
enableViewState=boolean
enableViewStateMac=boolean
autoEventWireup=boolean
smartNavigation=boolean
pageBaseType=typeInfo
userControlBaseType=typeInfo
validateRequest=boolean />
Contains attributes used to configure the default settings for ASP.NET pages
and user controls. These settings can be overridden by attributes on the
@ Page
or @ Control directive.
Scope
Any
Attributes
buffer
Specifies whether buffering of page output is on or off. The default is
True.
enableSessionState
Specifies whether a page has access to the Session state module. Acceptable
values include
True, False, and ReadOnly. The default is True.
enableViewState
Specifies whether ViewState is enabled at the page level. The default is
True.
enableViewStateMac
Specifies at the page level whether a machine authentication check (MAC) is
performed on the ViewState hidden field. This specification can help identify
client-side tampering with the ViewState. ...