So this seems to be harder to find than it should be. I need to create a menu bar (similar to VB6) for my ASP.NET application.
What I don’t need is a standard navigation menu bar (plenty of those out there). I’m not redirecting to a different page. What i do need is a menubar that will behave similarly to a VB6 menu, or ASP.NET button control. I have to postback and execute some VB code (depending on what menu item the user selected).
Call me dumb, but I can’t find Jack out there (or Jill, for that matter). Anybody know of a good resource?
Well the
Menucontrol is intended for navigation but if you don’t bind it to a sitemap (probably the most common use), you can use it for whatever you want. Here’s a simple example:Markup:
Code Behind: