js 父页中的单选按钮取值
程序员文章站
2023-11-17 14:56:58
int starvalue = 3; contentplaceholder ch = (contentplaceholder)master.findcontrol("mid...
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());
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());
上一篇: 解析微软机器人占领世界的未来策略
下一篇: HTML5新增的Css选择器、伪类介绍