A
Andreas Bergmeier
Hi.
Is there some KB article how to use EnableEventValidation 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
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.'
But even after I add the RegisterForEventValidation 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
Is there some KB article how to use EnableEventValidation 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
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.'
But even after I add the RegisterForEventValidation 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