asp.net.ph

Menu.Orientation Property

System.Web.UI.WebControls Namespace   Menu Class


.NET Framework version 2.0

Sets or retrieves the direction in which to render the Menu control.

Syntax


Script [ Orientation enumValue = ] Menu.Orientation

Property Value


enumValue One of the Orientation enumeration values.

The property is read/write with a default value of Vertical.

Remarks

Use the Orientation property to specify or determine the direction in which the Menu control is rendered. The following table lists the available options.

Orientation Description
Orientation.Horizontal The Menu control is rendered horizontally.
Orientation.Vertical The Menu control is rendered vertically.

Example

The following example demonstrates how to use the Orientation property to display a horizontal menu.

<asp:menu id = "navigationMenu"
   staticdisplaylevels=2
   staticsubmenuindent=10 
   orientation = "Horizontal"
   target = "_blank"   
   runat = "server">
   
   <items>
      ...
   </items>

</asp:menu>
See Also

Menu 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