<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")
D. strSex = Request.rbSex.value
E. For Each value in rbSex
If rbSex.selected = true
strSex = value
exit for
Next

Showing Answers 1 - 1 of 1 Answers

RENU

  • Jun 5th, 2006
 

c.strSex = Request("rbSex")

is the correct answer

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions