Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET menu
I want to create Horizontal menu with submenu in asp.net.
Menu will load the data which come from database.
 
like
http://www.menucool.com/horizontal/css-menu[^]
Posted 26-Jan-13 6:55am
Edited 26-Jan-13 6:58am
v2
Comments
Sandeep Mewara at 27-Jan-13 1:59am
   
And the issue is?
R@JE$# at 15 hrs ago
   
What you have tried? and where you have struck?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Controller :
 
MenuItemsDataClassesDataContext context = new MenuItemsDataClassesDataContext();
ViewBag.Menu = context.MenuDetails.OrderBy(q => q.PMenuId).ToList();
ViewBag.Module = context.MenuLists.ToList();
 
View :
Solution 1:
Solution 2:
menulist
ModuleID Name PModId pid active
1 Home 0 True
2 About 0 True
3 Contact 0 True
4 Terms 0 True
5 Overview 2 True
6 Get Started 2 True
7 Contact Overview 3 True
8 Contact Get Started 3 True
menudetail
 
Id Pid Cid Pname cname controler actiion
1 101 101 Home Home Home Index
2 201 201 About Us Overview Home Index
3 201 201 About Us Get Started Home Index
4 301 301 Contact Us Overview Home Index
5 301 301 Contact Us Get Started Home Index
7 101 101 Home Home Overview Home Index
  Permalink  
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 8,284
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,614
3 Maciej Los 4,989
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 27 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100