Tuesday, September 16, 2008

RadioButtonList

'When you want to make sure that they select something from a group
'of radiobuttons, use a radionbuttonlist, and check the selectedindex.
'Add the radio buttons to the items collections.

If (RadioButtonList1.SelectedIndex <= -1) Then

Response.Write("Please select something")

Else

Response.Write("You have selected: " + RadioButtonList1.SelectedItem.Text)

End If

No comments: