asp.net.ph

Menu.DynamicPopOutImageUrl Property

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 dynamic menu item when the dynamic menu item has a submenu.

Syntax


Inline <asp:menu dynamicpopoutimageurl = strUrl ... >
Script Menu.DynamicPopOutImageUrl [ = strUrl ]

Property Value


strUrl The URL to an image used to indicate that a dynamic menu item has a submenu.

The property is read/write with no default value.

Remarks

When a dynamic 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 DynamicEnableDefaultPopOutImage property to true to use the built-in image ( default ).
  • Set the DynamicPopOutImageUrl property to specify a custom image.

If the DynamicPopOutImageUrl property is set, that image overrides the built-in image.

NOTE: If the DynamicPopOutImageUrl property is not set and the DynamicEnableDefaultPopOutImage property is set to false, no image is displayed.

You can specify alternate text for the image by setting the DynamicPopOutImageTextFormatString property.

Example

The following example demonstrates how to use the DynamicPopOutImageUrl property to specify a custom image to display in a dynamic menu item when the menu item has a submenu.

<asp:menu id = "navigationMenu"
   dynamicdisplaylevels=2
   dynamicsubmenuindent=10
   dynamicpopoutimageurl = "~/images/popout.jpg"
   dynamicpopoutimagetextformatstring = "More..."
   runat = "server">

   <items>
      ...
   </items>

</asp:menu>
See Also

Menu Members   StaticPopOutImageUrl 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