on selection of dropdown giving server error [Resolved]

Posted by Sushant under ASP.NET on 6/13/2013 | Points: 10 | Views : 816 | Status : [Member] | Replies : 2
hi all
on selection of drop down its giving server error

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.
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 <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.



PLZ help hurry

Sushat


Responses

Posted by: Rickeybglr on: 6/13/2013 [Member] Starter | Points: 50

Up
0
Down

Resolved
go thru ths

http://www.codeproject.com/Questions/309426/Error-Invalid-postback-or-callback-argument-when-I

Sushant, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 6/13/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
You need to regenerate those controls dynamically on each page_load. Even on Postback. You also need to set their Id to the same value each time.

Sushant, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response