Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
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 18-Feb-13 2:04am

1 solution

Rate this: bad
good
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....
  Permalink  
Comments
Dhanashree Dive at 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 at 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)



Advertise | Privacy | Mobile
Web02 | 2.8.1411022.1 | Last Updated 18 Feb 2013
Copyright © CodeProject, 1999-2014
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