Asp.net 使复选框列表不可见

Asp.net 使复选框列表不可见,asp.net,checkboxlist,Asp.net,Checkboxlist,我在ASP.net中有一个复选框列表,其中有几个选项。有没有办法使物理复选框不可见?我想要它,这样只有有问题的项目是可见的,但框是不可见的。如果这是不可能的,有人可以推荐一个行为类似于复选框列表的替代ASP控件吗 例如,我有这样一个复选框列表: <asp:CheckBoxList ID="Example" runat="server" AutoPostBack="false" RepeatColumns="2" RepeatDirection="Horizontal">

我在ASP.net中有一个复选框列表,其中有几个选项。有没有办法使物理复选框不可见?我想要它,这样只有有问题的项目是可见的,但框是不可见的。如果这是不可能的,有人可以推荐一个行为类似于复选框列表的替代ASP控件吗

例如,我有这样一个复选框列表:

<asp:CheckBoxList  ID="Example" runat="server" AutoPostBack="false" RepeatColumns="2" RepeatDirection="Horizontal">        
        <asp:ListItem> 1 </asp:ListItem> 
        <asp:ListItem> 2 </asp:ListItem> 
        <asp:ListItem> 3 </asp:ListItem> 
        <asp:ListItem> 4 </asp:ListItem> 
        <asp:ListItem> 5 </asp:ListItem> 
 </asp:CheckBoxList>

1.
2.
3.
4.
5.
现在,我只希望数字可见和可选择,但我希望复选框不可见。很像一个按钮的工作方式,但我觉得创建x数量的按钮可能更乏味

根据答案,我尝试了演示Jquery并得出以下结论:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Testjq.Test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script type = "text/javascript" src ="Scripts/jquery-1.7.1.min.js"></script>
<script type = "text/javascript" src ="Scripts/jquery-ui-1.8.18.custom.min.js"></script>
<script>
    $(function () {
        $("#check").button();
        $("#format").buttonset();
    });
    </script>
    <style>
    #format { margin-top: 2em; }
    </style>
    <title></title>
</head>
<body>



<div class="demo">

<input type="checkbox" id="check" /><label for="check">Toggle</label>

<div id="format">
    <input type="checkbox" id="check1" /><label for="check1">B</label>
    <input type="checkbox" id="check2" /><label for="check2">I</label>
    <input type="checkbox" id="check3" /><label for="check3">U</label>
</div>

</div><!-- End demo -->

</body>
</html>

$(函数(){
$(“#检查”).button();
$(“#格式”).buttonset();
});
#格式{页边距顶端:2em;}
切换
B
我
U

不幸的是,我仍然无法让它工作。任何额外的帮助都将不胜感激。

您是否检查了jQueryUI

请看演示页面:


如果我理解得很好,他们正好有你要找的东西。

这正是我要找的东西,但是你能提供一个例子将其应用到复选框列表中吗?如果我将.button应用于复选框列表,它只会使enter列表成为一个按钮。