Click here to Skip to main content
12,765,176 members (37,495 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
I have a repeater in 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 18-Feb-13 2:04am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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....
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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170217.1 | Last Updated 18 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100