Click here to Skip to main content
Sign Up to vote bad
good
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 - 1:04


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....
  Permalink  
Comments
Dhanashree Dive - 18 Feb '13 - 7:44
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:25
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
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 495
1 OriginalGriff 273
2 Dave Kreskowiak 175
3 Mohammed Hameed 145
4 Mayur_Panchal 144
0 Sergey Alexandrovich Kryukov 8,123
1 OriginalGriff 6,173
2 CPallini 3,482
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 18 Feb 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid