Go homepage(回首页)
Upload pictures (上传图片)
Write articles (发文字帖)

The author:(作者)归海一刀
published in(发表于) 2014/1/30 1:21:44
asp.net得到全部已选中的RedioButton的值_[Asp.Net教程]

asp.net得到全部已选中的RedioButton的值_[Asp.Net教程]
foreach (var c in Page.Form.Controls)
{
if (c is RadioButton)
{
RadioButton btn = c as RadioButton;
if (btn.Checked)
{
Response.Write(btn.Text);
}
}
}


If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)





QQ:154298438
QQ:417480759