views:

113

answers:

0

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 in web.config, but it restricted the itemcommand event of the repeater.

Can someone guide me, how to solve this problem?