RadioButtonList rdolst = new RadioButtonList(); rdolst.ID = Qno; rdolst.RepeatDirection = rep; rdolst.Items.Add("A"); rdolst.Items.Add("B"); rdolst.Items.Add("C"); rdolst.Items.Add("D"); rdolst.SelectedIndexChanged += new EventHandler(ddl_SelectedIndexChanged);
public void ddl_SelectedIndexChanged(object sender, System.EventArgs e) { RadioButtonList rdoAns = (RadioButtonList)sender; string vlistindex = Convert.ToString(rdoAns.ID).Substring(6); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)