4
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by Ramesh S
0

Welcome SreekanthVenkat,

Use Menu Control from Navigation toolbox. Set Orientation property to set it Horizontal or vertical.

0

Welcome SreekanthVenkat,

Use Menu Control from Navigation toolbox. Set Orientation property to set it Horizontal or vertical.

ThanQ........

How to add Submenu .... Iam try please dont mind.... Help mee

0

Try this

if (!IsPostBack)
        {
            MenuItem menuHome = new MenuItem("Home");
            MenuItem menuMusic = new MenuItem("Music");
            menuMusic.NavigateUrl = "Music.aspx";            

            MenuItem menuClassical = new MenuItem("Classical");
            menuClassical.NavigateUrl = "Classical.aspx";
            menuMusic.ChildItems.Add(menuClassical);

            MenuItem menuRock = new MenuItem("Rock");
            menuRock.NavigateUrl = "Rock.aspx";
            menuMusic.ChildItems.Add(menuRock);  
          
            menuHome.ChildItems.Add(menuMusic);

            MenuItem menuMovies = new MenuItem("Movies");
            menuMovies.NavigateUrl = "Movies.aspx";

            MenuItem menuAction = new MenuItem("Action");
            menuAction.NavigateUrl = "Action.aspx";
            menuMovies.ChildItems.Add(menuAction);

            MenuItem menuDrama = new MenuItem("Drama");
            menuDrama.NavigateUrl = "Drama.aspx";
            menuMovies.ChildItems.Add(menuDrama);
            menuHome.ChildItems.Add(menuMovies);
            
            Menu1.Items.Add(menuHome);


        }
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.