asp.net 2.0 (VWD2005)下
<asp:RadioButton ID="RB1" Text="男" runat="server" Checked=' <%# Bind("sex") %>' GroupName="sex"/>
<asp:RadioButton ID="RB2" Text="女" runat="server" Checked=' <%# Bind("sex") %>' GroupName="sex"/>
代码是这样的,我原来看微软的教程,好像可以对绑定取反,怎么做!
先谢谢各位大侠了
<asp:RadioButton ID="RB1" Text="男" runat="server" Checked=' <%# Bind("sex") %>' GroupName="sex"/>
<asp:RadioButton ID="RB2" Text="女" runat="server" Checked=' <%# Bind("sex") %>' GroupName="sex"/>
代码是这样的,我原来看微软的教程,好像可以对绑定取反,怎么做!
先谢谢各位大侠了
解决方案 »
- 好累,Windows XP Professional x64 Edition 装了IIS V6.0版本,运行不了在32位系统上正常的网站
- KindEditor不能上传图片
- 根据多个条件进行查询的功能
- 客户端如何调用服务器端的方法
- 救助ASP.net创建项目时出错
- 怎么动态生成新的页面? <%if%>和<%for()%>在.aspx+c#中怎么实现?
- 有关datagrid中linkbutton获取值的问题!!!马上送分!!
- 03上无法运行这个程序,在XP上正常运行
- to saucer(思归, .NET MVP)
- 巨难办的问题!!!佳音~等候中……
- 如何在更新数据的时候使页面的按钮均不可用
- 菜鸟问题
<asp:RadioButton ID="RB2" Text="女" runat="server" Checked=' <%# Bind("sex") %>' GroupName="sex"/>
==
用Eval可以取反,Bind不可以<asp:RadioButton ID="RB1" Text="男" runat="server" Checked=' <%# Eval("sex") %>' GroupName="sex"/>
<asp:RadioButton ID="RB2" Text="女" runat="server" Checked=' <%# ! Convert.ToBoolean(Eval("sex")) %>' GroupName="sex"/>