Disable Event Validation
How do I disable event validation in 4.0 RC? I've tried setting it on the <pages> element in web.config but it did not seem to work.
Hi Matt,
You can do this only programmatically. There is no UI that allows you to set this property.
App.WorkWith().Pages()
.LocatedIn(PageLocation.Frontend)
.ForEach(pg => pg.Page.EnableEventValidation =
false
)
.SaveChanges();
|
Hello Matt,
You can put it in a user control and trigger it with a button. You are getting a null reference exception and most probably pg.Page is null. This could happen if the page in the query is a Group page. The Group page does not have a PageData which is represented by .Page.
I do not suggest working with the database and touching any tables there. All data is controlled by Open Access ORM and changes to the database are made in case of some issues that cannot be resolved by the API or you need to get some data just to use it on another place.
Regards,
Ivan Dimitrov
the Telerik team