System.Web.UI.Page.MaxPageStateFieldLength Property

Gets or sets the maximum length for the page's state field.

Syntax

public int MaxPageStateFieldLength { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the Page.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 Page.MaxPageStateFieldLength property.

Setting the Page.MaxPageStateFieldLength property to a negative number (the default) indicates that the view-state field should not be separated into chunks. Setting the Page.MaxPageStateFieldLength to a small number may result in poor performance.

Set the value of the Page.MaxPageStateFieldLength property in the pages element of the Web.config file.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0