Disable Event Validation in SharePoint

28 Nov

So you developed a slick MOSS webpart, but you do some fancy AJAX and the ASP.Net event validation system is throwing exceptions for you?

Sometimes it isn’t practical/possible to register all your values for event validation with the clientscriptmanager, and you just need to disable the feature.

Open up your sharepoint web.config, and search for  “<Page”

Add a new attribute to the tag, enableEventValidation=”false”

It should now look something like this:

Save your web.config, and your good to go.

Leave a Reply

Your email address will not be published. Required fields are marked *