Interview Questions

Referring to the inside, which line of code would retrieve the selected radio button value?

ASP Interview Questions and Answers


(Continued from previous question...)

80. Referring to the inside, which line of code would retrieve the selected radio button value?

< input type=radio name=rbSex value="M" > Male <Input type=radio name=rbSex value="F">Female Referring to the above, which line of code would retrieve the selected radio button value?


A. For cnt=0 to rbSex.count - 1
If rbSex(cnt).value = selected Then
strSex = rbSex(cnt).value
exit for
End If
Next
B. strSex = Request("rbSex").selected.value
C. strSex = Request("rbSex") (Answer)
D. strSex = Request.rbSex.value
E. For Each value in rbSex
If rbSex.selected = true
strSex = value
exit for
Next

(Continued on next question...)

Other Interview Questions