troubleshooting Question

Populating a dropdown navigation menu from a datasource - best practices

Avatar of Member_2_1242703
Member_2_1242703 asked on
Web DevelopmentHTML.NET ProgrammingASP.NETVisual Basic.NET
5 Comments1 Solution166 ViewsLast Modified:
I have an ASP.NET website (web forms) that pulls navigation menu items from a database table. Currently it is one menu list that populates 2 levels (menu item and some of those items have sub menu items.)

Currently I'm using a literal/DataList to display the <li> for each link. On the binding of the list, I'm searching the table for submenu items and essentially doing the same thing. This is all done on a master page.

As you can imagine, this causes for a lot of trips back/forth to the DB. I know there are a lot better way of doing this but I'm not really sure where to start. Populating this dropdown menu must be done from some sort of source. What is the best way to do this. I'm not really looking for a 3rd party control, though I suppose I'd entertain it if I could just drop it into my literal or some other simple method.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros