好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

js 父页中的单选按钮取值

int starvalue = 3;
ContentPlaceHolder ch = (ContentPlaceHolder)Master.FindControl("middlecontent");
RadioButton radio = new RadioButton();
for (int i = 1; i <= 5;i++ )
{
radio = (RadioButton)ch.FindControl("rblStar" + i);
if (radio.Checked == true)
{
starvalue = i;
break;
}
}
MessageBox.Show(starvalue.ToString());

查看更多关于js 父页中的单选按钮取值的详细内容...

  阅读:58次