<asp:RadioButtonList ID="RadioButtonList11" runat="server" RepeatColumns="4"
Width="300px" RepeatDirection="Horizontal" >
<asp:ListItem Value="1"> </asp:ListItem>
<asp:ListItem Value="2"> </asp:ListItem>
<asp:ListItem Value="3"> </asp:ListItem>
<asp:ListItem Value="4"> </asp:ListItem>
</asp:RadioButtonList> 满意 基本满意 不满意 不了解
@1 @2 @3 @4 (能不能让这个value 1 2 3 4 不显示啊)
我用这个控件,设定了1,2,3,4个值,分别对应(满意 基本满意 不满意 不了解) 然后根据选定的值,相应的跟新投票的结果
switch (RadioButtonList11.SelectedValue)
{
case "1":
DataAccess.ExecuteSql("update Title set my=my+1 where tid=1");
break;
case "2":
DataAccess.ExecuteSql("update Title set jbmy=jbmy+1 where tid=1");
break;
case "3":
DataAccess.ExecuteSql("update Title set bmy=bmy+1 where tid=1");
break;
case "4":
DataAccess.ExecuteSql("update Title set blj=blj+1 where tid=1");
break;
default:
break;
}
我就想在表单中就显示radiobutton的图标@,而不要显示文本和值,有没有什么办法吗?
Width="300px" RepeatDirection="Horizontal" >
<asp:ListItem Value="1"> </asp:ListItem>
<asp:ListItem Value="2"> </asp:ListItem>
<asp:ListItem Value="3"> </asp:ListItem>
<asp:ListItem Value="4"> </asp:ListItem>
</asp:RadioButtonList> 满意 基本满意 不满意 不了解
@1 @2 @3 @4 (能不能让这个value 1 2 3 4 不显示啊)
我用这个控件,设定了1,2,3,4个值,分别对应(满意 基本满意 不满意 不了解) 然后根据选定的值,相应的跟新投票的结果
switch (RadioButtonList11.SelectedValue)
{
case "1":
DataAccess.ExecuteSql("update Title set my=my+1 where tid=1");
break;
case "2":
DataAccess.ExecuteSql("update Title set jbmy=jbmy+1 where tid=1");
break;
case "3":
DataAccess.ExecuteSql("update Title set bmy=bmy+1 where tid=1");
break;
case "4":
DataAccess.ExecuteSql("update Title set blj=blj+1 where tid=1");
break;
default:
break;
}
我就想在表单中就显示radiobutton的图标@,而不要显示文本和值,有没有什么办法吗?
解决方案 »
- 如和往Global.aspx的Application_Error方法里传递参数?
- 我是新手,求各位高手,大哥大姐的一点经验:c#的三层结构怎么学最容易?非常感谢!!!
- URLRewriter+AspNetPager+中文变量
- 请教:ASP.NET中如何通过代码将指定刷新?
- 请教一下:我用asp.net 2.0 的treeview控件,在服务器(win2000 server)上发布后,客户端浏览器是IE6.0,访问没问题,但是客户端浏览器是IE
- 我被shared害惨了~只想求证!!!
- 怎么不用自动绑定。在Click事件中绑定GridView的值。急急急!!!
- 显示数据的格式特殊
- 文本框只能输入正整数
- 【问题】怎么样修改DataGrid中的checkbox控件列的checked状态
- sql的单用户模式
- DropDownList 的问题
<asp:ListItem Value="2">基本满意</asp:ListItem>
<asp:ListItem Value="3">不满意</asp:ListItem>
<asp:ListItem Value="4">不了解</asp:ListItem>
<asp:ListItem Value="1" Text=""></asp:ListItem>
<asp:ListItem Value="2" Text=""></asp:ListItem>
</asp:RadioButtonList>
给你试了下,没问题