protected void Button5_Click(object sender, EventArgs e) { RadioButtonList[] RBLPain = new RadioButtonList[2]; RBLPain[0] = new RadioButtonList(); RBLPain[0].Items.Add("Yes"); RBLPain[0].Items.Add("No"); Panel1.Controls.Add(RBLPain[0]); if (RBLPain[0].SelectedItem.Text == "Yes") { Response.Write(RBLPain[0].SelectedItem.Text); } }
ifRBLPain[0].SelectedItem != null) { if (RBLPain[0].SelectedItem.Text == "Yes") { Response.Write(RBLPain[0].SelectedItem.Text); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)