查找动态单选按钮是否已选中 [英] finding dynamic radiobutton checked or not
本文介绍了查找动态单选按钮是否已选中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我创建了运行时单选按钮.我需要检查单选按钮是否被选中.这怎么可能?
请有人帮我.
在此先感谢
Hi all,
I created run time radiobuttons. I need to check the radiobutton if they are checked or not. How is it possible?
Somebody help me please.
Thanks in advance
推荐答案
尝试一下,
Try this,
CheckBox chk = new CheckBox();
chk = (CheckBox)this.FindControl("ur checkbox id");
(Chkbxdisplay.Checked ? true : false);
chkbxdiplay是提供bool值(即true或false)的复选框的名称,然后您可以根据需要将该值存储在任何对象中..
试试这个可以帮助u.:thumbsup:
chkbxdiplay is the name of the checkbox it gives the bool value i.e. true or false then u can store this value in any object as u required..
try this can help u.:thumbsup:
这篇关于查找动态单选按钮是否已选中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文