asp.net.ph

BulletedList.BulletImageUrl Property

System.Web.UI.WebControls Namespace   BulletedList Class


.NET Framework version 2.0

Returns or sets the URL to a custom image to display for each bullet in a BulletedList control.

Syntax


Inline <asp:bulletedlist bulletimageurl = strUrl ... >
Script BulletedList.BulletImageUrl [ = strUrl ]

Property Value


strUrl The URL to a custom image to display for each bullet in a BulletedList.

The property is read/write with no default value.

Remarks

Use the BulletImageUrl property to specify an optional custom image for the current node in a BulletedList control.

This image is displayed next to the node text and can be in any of the accepted Web image file formats ( .jpg, .gif, .png ).

Use the BulletImageUrl property to specify the path to an image to display as each bullet in a BulletedList control. To specify a custom image for the bullets, you must also set the BulletStyle property to the value CustomImage.

NOTE: The BulletedList control does not support the AlternateText property because the bullets are inherently decorative and do not provide additional information that needs to be conveyed via assistive technology. However, if you want to use a custom image to convey a concept to the user, you should add additional text to each of the bulleted list items or use a control that allows you to specify alternate text for each image.

Example

The following example demonstrates how to use the BulletImageUrl property to specify a custom image for each item in a BulletedList control.

<asp:bulletedlist id = "navList"
   displaymode = "hyperlink"
   target = "_blank"  
   runat = "server"
   bulletstyle = "customimage"
   bulletimageurl = "~/shared/razz.gif">

      ... list items ...

</asp:bulletedlist>

 Show me 

See Also

BulletedList Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph