How to use BulletedList CSS Style in asp.net

BulletedList CssClass
BulletedListCssClass.aspx

<%@ Page Language="C#" AutoEventWireup="true" %>

<!DOCTYPE html>

<script runat="server">
    protected void Button1_Click(object sender, System.EventArgs e)
    {
        BulletedList1.CssClass = "BulletedListCssClass";
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>How to use BulletedList CssClass in asp.net</title>
    <style type="text/css">
        .BulletedListCssClass
        {
            color:DarkOrchid;
            font-family:Courier New;
            font-size:x-large;
            font-style:italic;
            text-decoration:underline;
            }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:CadetBlue; font-style:italic;">
            How to use BulletedList CssClass in asp.net
        </h2>
        <hr width="450" align="left" color="LightSkyBlue" />
        <asp:BulletedList 
            ID="BulletedList1"
            runat="server"
            >
            <asp:ListItem Text="LightCoral"></asp:ListItem>
            <asp:ListItem Text="LightCyan"></asp:ListItem>
            <asp:ListItem Text="LightGoldenRodYellow"></asp:ListItem>
            <asp:ListItem Text="LightSkyBlue"></asp:ListItem>
            <asp:ListItem Text="LightPink"></asp:ListItem>
        </asp:BulletedList>
        <br />
        <asp:Button 
            ID="Button1"
            runat="server"
            OnClick="Button1_Click"
            Text="Apply BulletedList CssClass"
            Height="45"
            Font-Bold="true"
            ForeColor="DodgerBlue"
            />
    </div>
    </form>
</body>
</html>
More asp.net examples