ASPX design page :
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Testing Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" runat="server">
</asp:Label>
<asp:BulletedList ID="BulletedList1" runat="server" Font-Names="Comic Sans MS" Font-Underline="true"
Font-Size="XLarge" OnDataBound="BulletedList_DataBound" ForeColor="CadetBlue">
</asp:BulletedList>
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Click Me"
Height="45" Font-Bold="true" ForeColor="DodgerBlue" />
</div>
</form>
</body>
</html>
Add this code on C#
protected void Button1_Click(object sender, System.EventArgs e)
{
string[] colors = { "Potato", "Red", "Green", "Silver", "Black" };
BulletedList1.DataSource = colors;
BulletedList1.DataBind();
}
protected void BulletedList_DataBound(object sender, EventArgs e)
{
Label1.Text = "Color List";
Label1.ForeColor = System.Drawing.Color.DeepSkyBlue;
Label1.Font.Name = "Arial";
Label1.Font.Underline = true;
Label1.Font.Size = FontUnit.XLarge;
BulletedList1.DisplayMode = BulletedListDisplayMode.LinkButton;
BulletedList1.Items[1].Enabled = false;
}