System.Web.UI.WebControls Namespace Menu Class
.NET Framework version 2.0
Returns or sets the URL to a custom image that is displayed in a static menu item when the static menu item has a submenu.
Inline |
<asp:menu staticpopoutimageurl = strUrl ... > |
Script |
Menu.StaticPopOutImageUrl [ = strUrl ] |
strUrl |
The URL to an image used to indicate that a static menu item has a submenu. |
The property is read/write with no default value.
When a static menu item contains a submenu, an image can be displayed to indicate that the user can expand the menu by positioning the mouse pointer over the menu item. There are two ways to display this image:
- Set the StaticEnableDefaultPopOutImage property to true to use the built-in image ( default ).
- Set the StaticPopOutImageUrl property to specify a custom image.
If the StaticPopOutImageUrl property is set, that image overrides the built-in image.
NOTE: If the StaticPopOutImageUrl property is not set and the StaticEnableDefaultPopOutImage property is set to false, no image is displayed.
You can specify alternate text for the image by setting the StaticPopOutImageTextFormatString property.
The following example demonstrates how to use the StaticPopOutImageUrl property to specify a custom image to display in a static menu item when the menu item has a submenu.
<asp:menu id = "navigationMenu"
staticdisplaylevels=2
staticsubmenuindent=10
staticpopoutimageurl = "~/images/popout.jpg"
staticpopoutimagetextformatstring = "More..."
runat = "server">
<items>
...
</items>
</asp:menu>
Menu Members DynamicPopOutImageUrl