How to register data for validation using RegisterForEventValidation in asp.net

Posted by rocksolid on Stack Overflow See other posts from Stack Overflow or by rocksolid
Published on 2010-06-10T17:54:25Z Indexed on 2010/06/12 7:32 UTC
Read the original article Hit count: 254

Filed under:
|

I would like to know the method of using RegisterForEventValidation in asp.net

My problem is this.

If I enable eventvalidation, then changing the controls using javascript and then posting the information back to the server later on throws up an error.

But If I disable event validation, the data present/selected in the controls is not available in the event handlers in code behind.

So, how should one resolve such issues?

Also, are there are any good articles that explain the issue and a resolution in detail? Tried googling. Came across many articles. But nothing that matched my expectations.

Thanks!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript