Maximum View State for a postback
Am dealing with a web page written by someone else. I don't have the source code so can't change it now.
Issue, the viewstate is 9.5 million characters long. It saves out to over 9MB.
The page has a check box that does an auto postback.
When it does that, the page errors and tosses an exception:
Error in Application ErrorSystem.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: Maximum request length exceeded. at System.Web.HttpRequest.GetEntireRawContent() at System.Web.HttpRequest.FillInFormCollection() at System.Web.HttpRequest.get_Form() at System.Web.UI.Page.GetCollectionBasedOnMethod() at System.Web.UI.Page.DeterminePostBackMode() at System.Web.UI.Page.ProcessRequestMain() --- End of inner exception stack tr Code: -1
So my question would be, what is the maximum postback size you can have?
John