3
Answers

What does the Orientation property do in a Menu control?

Tapan Mallick

Tapan Mallick

7y
196
1
What does the Orientation property do in a Menu control?
Answers (3)
0
Rajkiran Swain

Rajkiran Swain

NA 33.9k 372.4k 7y
Orientation property of the Menu control sets the display of menu on a Web page to vertical or horizontal.
Accepted
0
Manas Mohapatra

Manas Mohapatra

NA 29.3k 3.3m 7y
It sets in which direction menu control will render. It has two possible values:
 
Orientation.Horizontal - The Menu control is rendered horizontally.
Orientation.Vertical - The Menu control is rendered vertically.
 
By default is Vertical.
  1. <asp:menu id="NavigationMenu"  
  2.     staticdisplaylevels="2"  
  3.     staticsubmenuindent="10"   
  4.     orientation="Horizontal"  
  5.     dynamichorizontaloffset="10"  
  6.     target="_blank"    
  7.     runat="server">  
  8.   
  9.     <items>  
  10.       <asp:menuitem navigateurl="Test.aspx"   
  11.         text="Home"  
  12.         tooltip="Home">  
  13.         <asp:menuitem navigateurl="Test1.aspx"  
  14.           text="Music"  
  15.           tooltip="Music">  
  16.           <asp:menuitem navigateurl="Test2.aspx"   
  17.             text="Classical"  
  18.             tooltip="Classical"/>  
  19.         asp:menuitem>  
  20.     items>  
  21. asp:menu>
0
Amit Gupta

Amit Gupta

NA 16.5k 25.5k 7y
Orientation generally means to show vertically or horizontally