Enableeventvalidation in web user control
Posted
by Khushi
on Stack Overflow
See other posts from Stack Overflow
or by Khushi
Published on 2010-05-31T13:50:20Z
Indexed on
2010/05/31
13:52 UTC
Read the original article
Hit count: 152
Hi,
i have a web user control containing a repeater. The repeater contains three buttons. On button click it gives the following error :
Invalid postback or callback argument. Event validation is enabled using 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.
Since user control does not have page directive, so i changed the enableEventValidation to false, but it restricted the itemcommand event of the repeater.
Can someone guide me, how to solve this problem?
© Stack Overflow or respective owner