check if radio button list selection made
Hi,
How do I check in the following that an item has actually been selected from radio button list rbWalking? If there has been no selection made, I want to set WalkingParm.Value = DBNull.Value
Dim WalkingParm As SqlParameter = cmd.Parameters.Add("@Walking", SqlDbType.Int, 4) WalkingParm.Direction = ParameterDirection.Input WalkingParm.Value = CInt(rbWalking.SelectedItem.Value)
Thanks,
John
|