System.Web.UI.WebControls Namespace MenuItem Class
.NET Framework version 2.0
Returns or sets the URL to a custom image that is displayed next to the text in a MenuItem control.
Inline |
<asp:treeview imageurl = strUrl ... > |
Script |
MenuItem.ImageUrl [ = strUrl ] |
strUrl |
The URL to a custom image that is displayed next to the text of a MenuItem. |
The property is read/write with no default value.
Use the ImageUrl property to specify an optional custom image for the current menu item in a Menu control.
This image is displayed next to the menu item text and can be in any of the accepted Web image file formats ( .jpg, .gif, .png ).
MenuItem Members PopOutImageUrl SeparatorImageUrl