Hi.
Is there some KB article how to use EnableEventVali dation when doing
customized posts? Basicly we're building a post string via javascript
and issue it via means of XMLHttpRequest to the server.
This worked fine in .NET 1.1
Now in ASP.NET 2.0 I get an error message: 'Invalid postback or callback
argument. Event validation is enabled using <pages
enableEventVali dation="true"/in configuration or <%@ Page
EnableEventVali dation="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
ClientScriptMan ager.RegisterFo rEventValidatio n method in order to
register the postback or callback data for validation.'
But even after I add the RegisterForEven tValidation call I still get
this error message. So I'd be interested in what one has to do to setup
ones' code for postback to the server. (I didn't yet disassemble the
asp.net code).
Regards
Andreas