After doing some research it looks like this problem can happen because of different reasons. In my case I was using some hidden fields and textboxes (asp:HiddenField and asp:TextBox) and also some JavaScript to change the values client-side.
My solution was to put the hidden fields and textboxes inside an UpdatePanel, and generate a partial postback at the same time JavaScript changed the values client-side. Therefore, the postback arguments would be consistent since any JavaScript changes would happen during a partial postback. Not the most clean solution, but it's better than setting EnableEventValidation to false!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment