Posts

Debugging EventValidation Error with Update Panel

if ur using UpdatePanel and never got this: "Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation." then u should be a happy man. but for those of u that has... the classic scenario is u changing the control values with JS / JQ and on those cases the ClientScriptManager .RegisterForEventValidation( Control .UniqueID, "new Value" ); can help u, or even undoing the changes. but here is how my code lo...