Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a repeater in asp.net page.
I am binding data to repeater in question and option format.So, after selecting on radio button for one question I want to compare the radio button text to answer which is in database. Now I m not getting how to get that radio button text. and on what event I should write query to compare answer and option.
Posted

1 solution

Use Repeater's ItemCommand event, from the CommandEvent e, u will get the whole Item which u have selected, and find your control in that item, convert it into type RedioButton, so you will get the text of that selected redio button.....

if helpfull kindly accept the solution....
 
Share this answer
 
Comments
Dhanashree Dive 18-Feb-13 7:44am    
To use command event we have to set command name for radio button. but commandname property is not supporting.
vishal.shimpi 20-Feb-13 8:25am    
why u need command event name...? once you get the element, you can get redio button and text. There is no need of command event.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900