ASP.NET v2.0: Introducing BulletedList Control
page 3 of 5
by Colt Kwong
Average Rating: 
Views (Total / Last 10 Days): 34691/ 69

Introducing BulletedList control

Introducing BulletedList control

This brand new BulletedList control is inherited from the class of “System.Web.UI.WebControls.ListControl”, where a list of items will be generated in a bulleted format. It's just l
ike its brother control:

  • CheckBoxList
  • DropDownList
  • RadioButtonList
  • ListBox


Placing ListItem object in the BulletedList control manually or binded from a data source, developers can customize the "Bullet" of this control with BulletStyle property and the following are the most commonly use:


View Entire Article

User Comments

Title: Direct Post   
Name: Icer
Date: 2007-03-20 5:17:40 AM
It is pretty easy to redirect to another page: (The display style has to be "Hyperlink")

ListItem item = new ListItem(Title, Url);

That´s it.
Title: Controlling URL in Hyperlink mode   
Name: Patrick Farrell
Date: 2007-02-26 12:36:37 PM
In response to Russ's comments. Although it's not necessarily intuitive, when you are using the BulletedList and you have the display mode set to URL, ListItem.Value renders the link url, ListItem.Text renders the display.
Title: Images do not exist   
Name: Ozma
Date: 2006-03-22 2:18:56 PM
The images in this article are no longer at the URLs used in the markup
Title: Still Can't Post Directly to Another Page   
Name: Russ Brooks
Date: 2006-03-19 3:08:08 PM
The control is essentially useless because we still can not post driectly to another page. Like most .NET controls, why isn't there an "Url" attribute and a way to append a query string? True we can use the onclick, capture the event in the code-behind, then redirect with an appended query string, but why cause two requests on the server and skew logging and traffic metrics? Even 5 years after the advent of .NET, Microsoft still thinks a website can be built with a single page.

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2022  |  Page Processed at 2022-10-06 4:21:01 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search