Guys, I have a usercontrol in my asp.net 3.5 application, and I pass some plain text on a button click event. The button is in usercontrol. but when I fire the event, I get the following error:
Invalid callback or callback argument. Event checking is enabled using the configuration or <% @Page EnableEventValidation = "true"%> in page. For security reasons, this function checks that the arguments of the postback or callback event from the server that originally represented them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method to register the postback data or callback for validation.
when I set EnableEventValidation = "false" to the web form page, for example, hit. he fires an event;
<%@ Page EnableEventValidation="false" %>
but I think it should not be a good idea to establish this false. So what is the alternative here? there the error says that it uses the ClientScriptManager.RegisterForEventValidation method to register the postback or callback data for validation. 'but where am I going to register this thing? thanks!
In addition, I use some AjaxControlToolkit controls inside my usercontrol and some jquery files.
tugberk
source share