This menu control works based on external JavaScript and CSS file. These files are sample only. Follow the following steps to install the web control into the page.
Step 1: Create Web Control (I know you know all these steps, but just adding bit…)
Step 2: Install the web control into GAC
Step 3: Copy additional files into corresponding folders
Step 4: Insert the menu into aspx pages
<%@ Register Tagprefix="AreaMenuControl" Namespace="AreaMenuControl" Assembly="AreaMenuControl, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5539eabbaefd0c86" %>
<script language="JavaScript" src="src="/_layouts/<%=System.Threading.Thread.CurrentThread.CurrentUICulture.LCID%>/menu.js"></script>
<link rel="stylesheet" href="/_layouts/<%=System.Threading.Thread.CurrentThread.CurrentUICulture.LCID%>/menu.css">
<AreaMenuControl:MyAreaMenuControl ID="MyAreaMenuControl1" runat="server"/>
For example if you want to place at the top of the default.aspx page then insert the following line after the first <table> tag in the body tag
<tr> <td colspan="3" width="100%" height="24" bgcolor="#2C5F93">
</td> </tr>
Step 5: Web.config file settings.
<SafeControl Assembly="AreaMenuControl, Version=1.0.0.0, Culture=neutral,PublicKeyToken=5539eabbaefd0c86" Namespace="AreaMenuControl" TypeName="*" />
Note :
All the code attached here is sample only and they have been provided as of is
I have modified the code slightly to arrange the areas as per its Order Use the MyAreaMenuControl_WithSortedOrder.Cs file instead of MyAreaMenucontrol.cs.