Hi,
I have a problem with dynamic controls and AJAX.
I created aspx page with three controls: asp:DropDownList, asp:PlaceHolder and asp:Button. I load user control to the place holder, the name of the user control is written in the dropdownlist. In specific user control I have four radio buttons and when I click on submit button, I want to know which radio button is checked.
I load the user controls on each postback and give them the same ID, so the ViewState is saved and when I click on submit button and check which radio button is checked, I get the right result.
The problem is when I use AJAX call (jQuery AJAX call):
I call the page with AJAX call and send in data the serialization of the form (ViewState should be there)
$("#form1").serialization();
When I click on submit button and call the page with AJAX call, the radio button that is checked is always the radio button that was checked when the user control was load ...
Go to the complete details ...