Hello All,
I am creating a online course evaluation form for the college I work for. All the questions are likert scale questions as radiobuttonlists. I need to check if every question is blank and then stop the DB insert. From various sources on the net I have pieced together something that syntatically is good but nothing happens. Any insights? At first I attempted to use the requiredfield validators and use validationgroups but nothing was getting validated. I have now moved to the code-behind file to see if I could do it that way. My example is in VB.net.Dim rblctrl As Control
For Each rblctrl In Page.Controls
If TypeOf rblctrl Is RadioButtonList Then
Dim rbl As RadioButtonList = CType(rblctrl, RadioButtonList)
If rbl.SelectedIndex = -1 Then
Label1.Text = "You have not answered any of the questions"
End If
End If
Next ...
Go to the complete details ...