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




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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