What is the Pages MaxPageStateFieldLength for?

 Posted by Lokesh76 on 5/8/2011 | Category: ASP.NET Interview questions | Views: 8996 | Points: 40

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.


<pages MaxPageStateFieldLength="2048" />

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response