How to increase the form key count on an ASP.NET web forms page

Thu Oct 17 2013

You might get the following error when trying to postback "Operation is not valid due to the current state of the object". This is because ASP.NET limits the number of form keys that are posted during a postback.

To get around the issue, you can add this entry in the web.config to increase that limit: