Hi, I am dealing with AJAX UpdataPanel. I created 2 radio button during run time. By default there is a button in the updatepanel.
A user will check either one radiobutton in updatepanel and then hit the button.
How do i got to know which radiobutton is checked?
RadioButton rb1 = new RadioButton();
RadioButton rb2 = new RadioButton();
rb1.ID = "rb1";
rb2.ID = "rb2";
rb1.GroupName = "group1";
rb2.GroupName = "group1";
rb1.Text = "Yes";
rb2.Text = "No";
UpdatePanel1.ContentTemplateContainer.Controls.Add(rb1);
UpdatePanel1.ContentTemplateContainer.Controls.Add(rb2);