Page.MaxPageStateFieldLength Property
.NET Framework 3.0
Gets or sets the maximum length for the page's state field.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Page Members
System.Web.UI Namespace
Assembly: System.Web (in system.web.dll)
/** @property */ public int get_MaxPageStateFieldLength () /** @property */ public void set_MaxPageStateFieldLength (int value)
public function get MaxPageStateFieldLength () : int public function set MaxPageStateFieldLength (value : int)
Not applicable.
Property Value
The maximum length, in bytes, for the page's state field. The default is -1.When the MaxPageStateFieldLength property is set to a positive number, the view state sent to the client browser is broken into multiple hidden fields, and each field's value is less than the size specified in the MaxPageStateFieldLength property.
Setting the MaxPageStateFieldLength property to a negative number (the default) indicates that the view-state field should not be separated into chunks. Setting the MaxPageStateFieldLength to a small number may result in poor performance.
Set the value of the MaxPageStateFieldLength property in the pages element of the Web.config file.
Reference
Page ClassPage Members
System.Web.UI Namespace
Other Resources
pages Element (ASP.NET Settings Schema)Community Additions
ADD
Show: