asp.net项目符号列表控件-如何隐藏项目符号点?

问题描述:

我已经搜索过Google,但仍然找不到从项目符号列表控件中删除项目符号点的方法.我只想要一个列表,其文本仅包含数字,项目符号或字母.我该怎么办?

I've searched Google and cannot find anyway to remove the bullet points from the bulleted list control. I only want a list with the text only no numbers, bullet points or letters. How can I do this?

如果我做不到这一点,那么我可以考虑使用另一个控件吗?我需要能够获取值,以便将数据绑定到此控件.

If i cant do this is there an alternative to this perhaps another control i should look into? I need to be able to get the values so I'm binding data to this control.

以防万一,在这里放置html-

Heres the html just in case-

<ItemTemplate>                                                                                                
   <asp:Table ID="comparator_tbl" runat="server" CssClass="plainTable">
        <asp:TableRow>
            <asp:TableCell ID="demographic_cell" runat="server" HorizontalAlign="Right">
                <asp:BulletedList ID="demographicComparator_lst" runat="server">
                </asp:BulletedList>
            </asp:TableCell>
            <asp:TableCell ID="detail_cell" runat="server" HorizontalAlign="left">
                <asp:BulletedList ID="comparator_lst" runat="server">
                </asp:BulletedList>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
</ItemTemplate>

项目符号列表控件用于将项目显示为项目符号列表.如果不需要子弹,则应使用简单的列表控件...我认为您将不得不使用CSS进行设置,因为BulletedList的BulletStyle属性不支持空白样式.

Bullet list control is used to show items as a bulleted list. if you don't need bullets the you should use simple list control... I think you will have to resort to setting this with CSS since the BulletStyle property of the BulletedList doesn't support a blank style.

<asp:BulletedList ID="BulletedList1" runat="server" style="list-style-type:none;" >
</asp:BulletedList>

希望这会有所帮助.