首页 技术教程 实用代码 注册破解 正则表达式 网址导航 电子书籍

如何获取所有RedioButton并弹出当前被选中是RedioButton的值

foreach (var c in Page.Form.Controls) { if (c is RadioButton) { RadioButton btn = c as RadioButton; if (btn.Checked) { Response.Write(btn.Text); } } }
类别:网页编程 - ASP.NET    查看:136    更新:2014-05-20