如题!
解决方案 »
- 多线程:所有线程执行到一个地方才往下执行,怎么实现?
- 怎么高效率点获取文件夹的大小值
- XP系统IE6下WebBrowser不能查看本地网页中的Flash
- winform中怎样终止一个程序的运行(急)
- 获取文件夹父路径问题
- C#笔试题,高分求教,求好心人帮忙!!!!
- App.config的问题?
- 两个日期之间计算月份和天数
- 水晶报表程序发布的问题!
- ADO.NET问题,如何用SqlDataAdapter填充两张表到DataSet?
- datagridview用了一下,感觉好难用啊!大家做C/S的用c#吗?
- 下面的代码能编译过,用DATASET 和 MySqlDataAdapter 操作数据库 , 请问为什么不能插入一个记录到数据库呢
<html>
<head>
<script language="C#" runat="server">
void Button1_Click(Object sender, EventArgs e) {
if (Radio3.GroupName == "RegularMenu") {
Radio3.GroupName = "VegitarianMenu";
Radio3.BackColor = System.Drawing.Color.LightGreen;
}
else {
Radio3.GroupName = "RegularMenu";
Radio3.BackColor = System.Drawing.Color.Pink;
}
}
</script>
</head>
<body>
<h3>Panel Example</h3>
<form runat=server>
<asp:Label id="Label1" BackColor="Pink" Text="RegularMenu" runat="server"/>
<asp:Label id="Label2" BackColor="LightGreen" Text="VegitarianMenu" runat="server"/>
<p>
<asp:RadioButton id="Radio1" GroupName="RegularMenu"
Text="Beef" BackColor="Pink" runat="server"/>
<p>
<asp:RadioButton id="Radio2" GroupName="RegularMenu"
Text="Pork" BackColor="Pink" runat="server"/>
<p>
<asp:RadioButton id="Radio3" GroupName="RegularMenu"
Text="Fish" BackColor="Pink" runat="server"/>
<p>
<asp:RadioButton id="Radio4" GroupName="VegitarianMenu"
Text="Mushroom" BackColor="LightGreen" runat="server"/>
<p>
<asp:RadioButton id="Radio5" GroupName="VegitarianMenu"
Text="Tofu" BackColor="LightGreen" runat="server"/>
<p>
<asp:Button id="Button1" OnClick="Button1_Click"
Text="Regroup the radio buttons" runat="server"/>
</form>
</body>
</html>
RadioButton没有那个属性控制自己与哪些其他的RadioButton进行分组。所以还是用GroupBox吧!