Reshma Bhalekar

Reshma Bhalekar

  • NA
  • 1.1k
  • 502.3k

Invalid postback issue when I used <asp:dropdownlist >

Aug 31 2017 1:41 AM
Hi,
 
I have one visual web part deployed on SharePoint 2013 site and in that I have used <asp:DropDownList> instead of <select> list. I have bind all data using REST api and jQuery.
but when I clicked on save button it shows below 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.”
 
If I have used <select> list then it is working fine but it is not giving me selected value of <select> list at server side.
 
Thanks
Reshma

Answers (7)