请教有关Radio Button控件和DataGrid的问题。 我在asp.net中要用到几十个Radio Button控件(这个不是RadioButton控件),现在要 对这些Radio Button进行循环判断,不知这样的C#代码怎么写? 还有就是如何表示“点击DataGrid中某一个单元格”,请高手指教,谢谢~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 private string s;protected void Condition(Control ctrl){foreach (Control c in ctrl.Controls){if(c is System.Web.UI.HtmlControls.HtmlInputRadioButton){if(((System.Web.UI.HtmlControls.HtmlInputRadioButton)(c)).Checked==true){ s=((System.Web.UI.HtmlControls.HtmlInputRadioButton)(c)).Value;}}Condition(c);}}private void Button1_Click(object sender, System.EventArgs e){Condition(this);Response.Write(s);} 100分,这个怎样打印??? TreeView选中节点传值 动态添加控件后却找不到刚添加的控件!跪求高手帮一下! vs2005初级问题 |zyciis| 如何给网站的每一个目录定义他的出错信息处理方法 而不是只是在根目录里面的Global.asax中义 救命呀~~~如何在web上实现发票的套打功能呀?! 我的程序错在那 dropdownlist付值问题 ASP.NET生成word怎样设置默认是横向 怎样实现双击按钮给一个警告? 在线高分求教,紧急紧急 关于DATAGRID模板列事件的问题.^_^
protected void Condition(Control ctrl)
{
foreach (Control c in ctrl.Controls)
{
if(c is System.Web.UI.HtmlControls.HtmlInputRadioButton)
{
if(((System.Web.UI.HtmlControls.HtmlInputRadioButton)(c)).Checked==true)
{
s=((System.Web.UI.HtmlControls.HtmlInputRadioButton)(c)).Value;
}
}
Condition(c);
}
}private void Button1_Click(object sender, System.EventArgs e)
{
Condition(this);
Response.Write(s);
}