問:
如何獲取所有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);
}
}
}
新聞熱點
疑難解答