Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best menu for an ASP.Net application?

What do you find to provide the best menu for an ASP.Net 2.0 - 3.5 web application? Suggestions do not have to particularly be ASP.Net controls, but could be other menu's that work well within an ASP.Net web application.

I would like for the suggestions to be options that do not require purchasing or royalty fees. OpenSource suggestions would be even better.

like image 740
codewright Avatar asked Jan 08 '09 05:01

codewright


People also ask

What are the two kinds of menu control explain with example?

The Menu control has two modes of display: static and dynamic. Static display means that the Menu control is fully expanded all the time. The entire structure is visible, and a user can click on any part.

What are the applications of ASP?

ASP.NET is used to produce interactive, data-driven web applications over the internet. It consists of a large number of controls such as text boxes, buttons, and labels for assembling, configuring, and manipulating code to create HTML pages.

What is ASP.NET w3schools?

ASP and ASP.NET are server side technologies. Both technologies enable computer code to be executed by an Internet server. When a browser requests an ASP or ASP.NET file, the ASP engine reads the file, executes any code in the file, and returns the result to the browser.

What is the importance of ASP?

ASP.NET allows developers to create web applications, web services, and dynamic content-driven websites.


1 Answers

I've found that the most flexible is to use CSS to style an unordered list like this:

<div id="nav_main" >
<ul>
  <li id="current">Button 1</li>
  <li><a href="#">Button 2</a></li>
  <li><a href="#">Button 3</a></li>
  <li><a href="#">Button 4</a></li>
  <li><a href="#">Button 5</a></li>
</ul>
</div> 

You'll find many CSS ways to style this kind of list with hover background images, etc.

Now if you are using Webforms and you want to use your sitemap, then I would suggest using a Repeater and NOT use the menu control. You will have the most control of your generating your list this way.

Similarly, if you are using ASP.NET MVC, you can do a foreach on your sitemap to create your list.

This of course is just for simple menus, but it can be expanded to include more complicated menus. I've found the following CSS-styled menu to be very good: http://www.lwis.net/free-css-drop-down-menu/

like image 198
Trevor de Koekkoek Avatar answered Oct 12 '22 07:10

Trevor de Koekkoek