How to use BulletedList in

Posted by Ranjeet_8 under ASP.NET category on | Points: 40 | Views : 2132
ASPX design page :

<html xmlns="">
<head id="Head1" runat="server">
<title>Testing Page</title>
<form id="form1" runat="server">
<asp:Label ID="Label1" runat="server">
<asp:BulletedList ID="BulletedList1" runat="server" Font-Names="Comic Sans MS" Font-Underline="true"
Font-Size="XLarge" OnDataBound="BulletedList_DataBound" ForeColor="CadetBlue">
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Click Me"
Height="45" Font-Bold="true" ForeColor="DodgerBlue" />

Add this code on C#

protected void Button1_Click(object sender, System.EventArgs e)
string[] colors = { "Potato", "Red", "Green", "Silver", "Black" };
BulletedList1.DataSource = colors;

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;

Comments or Responses

Posted by: T.Saravanan on: 9/3/2012 Level:Silver | Status: [Member] [MVP] | Points: 10

Could you explain little bit about Bulleted List and its uses then post your code?
That is the way user easily to understand your code and uses of Bulleted List. Without explanation there is no use for viewers.

please update your code.

Login to post response