ASP.NET Syntax ASP.NET Syntax for Web Controls
Creates a control that generates a list of items in a bulleted format.
Declarative Syntax
<asp:BulletedList
AccessKey = "string"
AppendDataBoundItems = "True | False"
AutoPostBack = "True | False"
BackColor = "color name | #dddddd"
BorderColor = "color name | #dddddd"
BorderStyle = "NotSet | None | Dotted | Dashed | Solid | Double | Groove |
Ridge | Inset | Outset"
BorderWidth = size
BulletImageUrl = "uri"
BulletStyle = "NotSet | Numbered | LowerAlpha | UpperAlpha | LowerRoman |
UpperRoman | Disc | Circle | Square | CustomImage"
CausesValidation = "True | False"
CssClass = "string"
DataMember = "string"
DataSource = "string"
DataSourceID = "string"
DataTextField = "string"
DataTextFormatString = "string"
DataValueField = "string"
DisplayMode = "Text | HyperLink | LinkButton"
Enabled = "True | False"
EnableTheming = "True | False"
EnableViewState = "True | False"
FirstBulletNumber = integer
Font-Bold = "True | False"
Font-Italic = "True | False"
Font-Names = "string"
Font-Overline = "True | False"
Font-Size = "string | Smaller | Larger | XX-Small | X-Small | Small |
Medium | Large | X-Large | XX-Large"
Font-Strikeout = "True | False"
Font-Underline = "True | False"
ForeColor = "color name | #dddddd"
Height = size
ID = "string"
OnClick = "Click event handler"
OnDataBinding = "DataBinding event handler"
OnDataBound = "DataBound event handler"
OnDisposed = "Disposed event handler"
OnInit = "Init event handler"
OnLoad = "Load event handler"
OnPreRender = "PreRender event handler"
OnSelectedIndexChanged = "SelectedIndexChanged event handler"
OnTextChanged = "TextChanged event handler"
OnUnload = "Unload event handler"
runat = "server"
SkinID = "string"
Style = "string"
TabIndex = integer
Target = "string | _blank | _parent | _search | _self | _top"
ToolTip = "string"
ValidationGroup = "string"
Visible = "True | False"
Width = size
>
<asp:ListItem
Enabled = "True | False"
Selected = "True | False"
Text = "string"
Value = "string"
/>
</asp:BulletedList>
For information on the individual members of this class, see BulletedList in the class library.
The BulletedList control renders a list of items that are formatted with bullets.
To specify the individual list items that you want to appear in a BulletedList control, place a ListItem object for each entry between the opening and closing tags of the BulletedList control.
The below example shows a BulletedList control that is configured to display the list items as hyperlinks. The control contains statically defined items in which the URLs of the hyperlinks are defined in the Value property of each item. The control is also configured to display a custom image as the bullet.
<asp:bulletedlist id="navList"
displaymode = "hyperlink"
target = "_blank"
runat="server"
bulletstyle = "customimage"
bulletimageurl = "~/shared/razz.gif">
<asp:listitem text = "MSN" value="http://www.msn.com" />
<asp:listitem text = "MSNBC News" value="http://www.msnbc.msn.com" />
<asp:listitem text = "Microsoft" value="http://www.microsoft.com" />
<asp:listitem text = "ASP.NET" value="http://www.asp.net" />
<asp:listitem text = "GotDotNet" value="http://www.gotdotnet.com" />
<asp:listitem text = "MSDN" value="http://msdn.microsoft.com" />
<asp:listitem text = "MSN Shopping" value="http://shopping.msn.com" />
<asp:listitem text = "MSN Autos" value="http://autos.msn.com" />
<asp:listitem text = "MapPoint" value="http://www.mappoint.com" />
<asp:listitem text = "MSN City Guides" value="http://local.msn.com" />
<asp:listitem text = "MSN Music" value="http://music.msn.com" />
</asp:bulletedlist>
Show me
BulletedList Class BulletedList Web Server Control