I'm trying to find a way to implement this menu in ASP.NET 2.0 according to "best practices". Basically it is a vertical non-folding "static" menu. What makes it a bit special is that some of the items contain text that is generated by a DB query.
Section 1
> State 1 (<output from DB query>)
> State 2 (<output from DB query>)
> Static entry
Section 2
> State 3 (<output from DB query>)
and so on...
Of course, I could hard-code the HTML code and then inject the DB output where apropriate, but I would like to do it in a more sophisticated way. I've been struggling with asp:menu and web.sitemap, but I failed to produce correct markup of the sections. Neither was I able to find a way to inject the DB output.
I've also fiddled a bit with css menu adapters (http://www.asp.net/cssadapters/) but then I was back on doing too much HTML myself.
What's your opinions on this?
Regards,
Johan
If this post was useful to you, please mark it as answer. Thank you!