The fact is that I have two listboxes that with jquery I pass the data from one to another, which are prices of travel supplements but, when I go to process it gives me the error
"Invalid postback or callback argument: Event validation is enabled using the configuration or on a page For security reasons, this feature Verify that the arguments passed to postback or callback events originate from the control of the server that initially processed them.If the data is valid and is as expected, use the ClientScriptManager.RegisterForEventValidation method to record the postback data or return calls for validation. "
The case is that I add the enableEventValidation="true" to the page Page page and the same thing keeps happening to me. Now, if I do not touch the supplements and change them from one listbox to the other, I do not get an error, and the change I make with the listbox is very simple.
var listBox1 = $ ('# <% = lSuplements.ClientID% >'); var listBox2 = $ ('# <% = lSupplementsElegidos.ClientID% >'); $ ("# lSuplementos"). click (function () { listBox1.find ('option: selected'). appendTo (listBox2); });
Like solvento this so that I do not get an error