The two posts above have it correct.
if (MyRadioBtn.SelectedIndex %26gt; -1) {
//do your stuff here .. this code executes only if a selectedItem has been set.
}Asp.net radiobuttonlist control error?
You can use the SelectedIndex property. If no items are selected, it will be set to -1
Hi!
Check property ';SelectedIndex'; to know if something is selected. If it's %26gt; -1, than it means something is selected.
Hope this helps!
No comments:
Post a Comment