Hi
In a user control I have a way of switching between a droplist that contains american states in a dropdown list or a a standard textbox if the country selected is not US. If any other value is selected besides US, the textbox is set to visible=true and vice versa.
I have added the american state droplist and textbox (in the event of the country not being US) in an update panel. The country dropdown list is outside the updatepanel and so therefore have implemented an async trigger with the event name as "selectedindexchanged".
I am getting back this 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."
I have tried doing this without a user control and have added it on the page and it works so can't understand when I add this into the user control, it won't work.
I have researched this and it appears to be a common problem, I have tried adding "eventvalidation=false" in the web.config but still no joy.
Many thanks in advance.