在转发器中,在单选按钮选择中,我想要asp.net中的单选按钮文本 [英] In repeater,On radio button selection,I want radio button text in asp.net

查看:72
本文介绍了在转发器中,在单选按钮选择中,我想要asp.net中的单选按钮文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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.

推荐答案

使用Repeater的ItemCommand事件,从CommandEvent e,你将获得整个项目您已选择,并在该项目中找到您的控件,将其转换为RedioButton类型,因此您将获得所选redio按钮的文本.....



如果有帮助,请接受解决方案....
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....


这篇关于在转发器中,在单选按钮选择中,我想要asp.net中的单选按钮文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆