hi, i converted my project from asp.net 1.1 to 2.0 by Visual studio 2005 wizard. when i using my datagrid selected index event in asp.net 1.1(VS2003) it works fine. but after conversion it gives me the following error on selecting any item in grid.
Invalid postback or callback argument. Event validation is enabled using in configuration or 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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Invalid
postback or callback argument. Event validation is enabled using in configuration or 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.
I made enableEventValidation="true" in the page, but my team member told me that this will not recomemded its security in concern. Should there is any other way to solve this problem?
sanjayvishu
Member
2 Points
4 Posts
Invalid postback or callback argument
May 19, 2007 09:41 AM|LINK
hi, i converted my project from asp.net 1.1 to 2.0 by Visual studio 2005 wizard. when i using my datagrid selected index event in asp.net 1.1(VS2003) it works fine. but after conversion it gives me the following error on selecting any item in grid.
Invalid postback or callback argument. Event validation is enabled using in configuration or 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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using in configuration or 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.
I made enableEventValidation="true" in the page, but my team member told me that this will not recomemded its security in concern. Should there is any other way to solve this problem?