System.Web.UI.WebControls Namespace Menu Class
.NET Framework version 2.0
Sets or retrieves the direction in which to render the Menu control.
Script |
[ Orientation enumValue = ] Menu.Orientation |
The property is read/write with a default value of Vertical.
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. |
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>
Menu Members