Non Item Selected on RadioButtonList
-
Hi I have a RadioButtonList Control and I dont have any Item selected. Is there an instruction that validates if you selected an Item or Not from this RadioButtonList Control??? I would expect something like this in VB: RadioButtonList1.AnyItemSelected=True Any ideas?? Thanx ¡¡
-
Hi I have a RadioButtonList Control and I dont have any Item selected. Is there an instruction that validates if you selected an Item or Not from this RadioButtonList Control??? I would expect something like this in VB: RadioButtonList1.AnyItemSelected=True Any ideas?? Thanx ¡¡
Armando, you need to test your radio button list items using a foreach statement... Im more confortable with C#, if you are a VB person try to convert the below code to VB syntax protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { foreach (ListItem li in RadioButtonList1.Items) { if (li.Selected == true) { //execute some instruction } } } } Le me know if you are still confused Nila Fridley