ASP.NET: Unable to validate data

前端 未结 8 1465
野的像风
野的像风 2020-12-08 06:31

What is the cause of this exception in ASP.NET? Obviously it is a viewstate exception, but I can\'t reproduce the error on the page that is throwing the exception (a simple

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-08 06:58

    I've experienced the issue with certain specific versions of Safari 3. My solution was to move the ViewState to the top of the form (extended the Page class and overwrote the Render method for pre-3.5 SP1, or .Net 3.5 SP1 and later does this by default), and to split up the ViewState to several different fields instead of one monster file. See ViewState Chunking in ASP.NET 2.0 (maxPageStateFieldLength)

提交回复
热议问题