首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

vs2005 里面没有RadioGroup吗?解决方案

2012-01-29 
vs2005 里面没有RadioGroup吗?找了半天也没找到[解决办法]Radio Group?应该不是标准的Windows控件。楼主你

vs2005 里面没有RadioGroup吗?
找了半天也没找到

[解决办法]
Radio Group?
应该不是标准的Windows控件。

楼主你想实现什么功能呢?
[解决办法]
有用radiobuttonlist即可实现
[解决办法]
是控件,直接使用,在属性items中加项目既可
[解决办法]
有Group属性,设置一下
[解决办法]
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:RadioButton ID="r1" GroupName ="r" runat="server" Checked ="true" /> 
<asp:RadioButton ID="RadioButton1" GroupName ="r" runat="server" /> 
<asp:RadioButton ID="RadioButton2" GroupName ="r" runat="server" /> 
<asp:RadioButton ID="RadioButton3" GroupName ="r" runat="server" /> 
</div>
</form>
</body>
</html>
以上代码应该能实现楼主想要的吧.
[解决办法]
自己做一个, 比较简单...

热点排行