Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

asp.net bulleted list control - how to hide bullet points?

Tags:

c#

asp.net

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.

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>
like image 686
kurupt_89 Avatar asked Jan 29 '26 07:01

kurupt_89


1 Answers

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>

Hope this helps.

like image 147
AlphaMale Avatar answered Jan 30 '26 20:01

AlphaMale