CodeSnip:ASPNETMenu
page 1 of 1
Published: 04 Jan 2005
Unedited - Community Contributed
Abstract
ASPNETMenu is a really powerful drop-down menu generator for the ASP.NET programmer. All JavaScript and client-side programming is done automatically with minimal ASP.NET programming.
by Web Team at ORCS Web
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 9894/ 39

ASP.NET Menu is a really powerful drop-down menu generator for the ASP.NET programmer. All JavaScript and client-side programming is done automatically with minimal ASP.NET programming.

From their website, http://www.aspnetmenu.com/ you can view many samples that will impress even the most skeptical, and there is even a menu generator where you can use an online tool that will help you generate the drop-down menu to your liking.

It is important to remember that this ultimately generates Client-Side JavaScript so some of the older browsers will not handle this correctly. Be sure to test how it will respond for all your potential clients. Generally, though, this will work on all the modern browsers.

Example Menu

To create a basic horizontal drop-down menu with some style sheet formatting, simply do the following:

  • Put the ASPNETMenu.DLL file in your /bin folder.
  • Add the following to the top of your .aspx page.

<%@ Register TagPrefix="MENU" Namespace="ASPNETMenu"
Assembly="ASPNETMenu" %>

Add this to the body where you want the menu:

<MENU:ASPNETMENU id="ASPNETMenu1" runat="server" IsMovable="True"
MenuData="menudata.xml"></MENU:ASPNETMENU> 

Create an .xml file in the same folder as your .aspx file that is similar
to this and name it menudata.xml:

<MenuData>     
<MenuGroup>
<MenuItem Label="Main">
<MenuGroup ExpandOffsetY="1" ExpandOffsetX="-1">
<MenuItem Label="Sign-up" ID="i_Signup" URL="http://www.orcsweb.com/signup.asp"/>
<MenuItem Label="Hosting Plans-->">
<MenuGroup>
<MenuItem Label="Clustered" ID="i_Clustered" 
URL="http://www.orcsweb.com/clusters.asp"/>
<MenuItem Label="Dedicated" ID="i_Dedicated" 
URL="http://www.orcsweb.com/dedicatedinfo.asp"/>
<MenuItem Label="Shared" ID="i_Shared" URL="http://www.orcsweb.com/shared.asp"/>
</MenuGroup>
</MenuItem>
</MenuGroup>
</MenuItem>
<MenuItem Label="Support">
<MenuGroup ExpandOffsetY="1" ExpandOffsetX="-1">
<MenuItem Label="About Us" ID="i_AboutUs" URL="http://www.orcsweb.com/whoare.asp"/>
<MenuItem Label="Articles" ID="i_Articles" URL="http://www.orcsweb.com/articles.asp"/>
<MenuItem Label="Supportt" ID="i_Support" URL="http://www.orcsweb.com/support1.asp" />
<MenuItem Label="Who are we" ID="i_whoarewe" URL="http://www.orcsweb.com/whoare.asp" />
</MenuGroup>
</MenuItem>
</MenuGroup> 
</MenuData>

That's it. As already mentioned though, this is just the beginning. Visit the tutorial or samples at http://www.aspnetmenu.com/.

By Scott Forsyth, a senior web specialist at ORCS Web, Inc. - a company that provides managed hosting services for clients who develop and deploy their applications on Microsoft Windows platforms.



User Comments

Title: ASPnetMenu Control   
Name: Uday
Date: 2008-05-08 1:06:12 AM
Comment:
Hi,
Please let me know the reason why it is not working in Mozilla..
Title: ASPnetMenu Control   
Name: uday
Date: 2008-05-02 1:22:38 AM
Comment:
Hi,
I have purchased the control.control is working in IE,but THE MENU IS NOT WORKING ON FIREFOX... (i AM USING VISUAL STUDIO 2005)
Title: firefox   
Name: GOODWAY
Date: 2007-03-06 10:57:06 AM
Comment:
HI,
THE MENU IS NOT WORKING ON FIREFOX... (i AM USING VISUAL STUDIO 2005)
Title: aspnetmenu.dll file not found   
Name: Scott Forsyth
Date: 2006-04-14 11:23:39 AM
Comment:
Hi Mitul, When you install this, it should be placed in a path in your program files. Manually copy the file to your /bin folder and then you will be able to use it. You can purchase the component from www.aspnetmenu.com
Title: aspnetmenu.dll file not found   
Name: mitul
Date: 2006-04-14 2:49:57 AM
Comment:
plz say how can i find this file .help me.
Title: From where to get this aspnetmenu.dll   
Name: Amit
Date: 2005-11-05 11:34:43 AM
Comment:
Plz tell me how can i get this aspnetmenu.dll, is there any other way to easyly put dropdown menu in a asp.net page except javascipt
Title: can use sql/access as its datasource?   
Name: Scott Forsyth
Date: 2005-03-09 9:19:30 AM
Comment:
Hi leo_boy,

SQL and Access aren't supported but XML is.
Title: can use sql/access as its datasouce?   
Name: leo_boy
Date: 2005-03-09 4:20:51 AM
Comment:
can it use sql or access as its datasouce??
Title: A free (and more accessible) alternative   
Name: Don Whitehead
Date: 2005-01-10 9:25:24 AM
Comment:
Try looking at skmMenu. http://www.skmmenu.com

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-10-07 8:27:47 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search