ASP.NET Menu. ExpertMenu - XML and CSS based DHTML Server-Side Menu Control for ASP.NET

Examples Quick Start ExpertMenu Designer Contact Us

 
ExpertMenu Quick StartAdding ExpertMenu to an ASP.NET page

Switch the page into design mode and drag and drop the ExpertMenu icon from Visual Studio Toolbox onto the page.



If you don't use Visual Studio or can't find the ExpertMenu icon on the Toolbox, follow three easy steps:

1. Make ExpertControls assembly available for your web application.
To do this, copy ASPNETExpert.WebControls.dll assembly to the bin directory of your web application.
If you use Visual Studio, add reference to ASPNETExpert.WebControls.dll to the application References.

2. Put the following statement at the top of the aspx page:
				
<%@ Register TagPrefix="ec" 
    Namespace="ASPNETExpert.WebControls" 
    Assembly ="ASPNETExpert.WebControls" %>
        
			
3. Place menu control where you want it in your page:
				
<ec:ExpertMenu runat="server" id="ExpertMenu1" />
        
			


Important notion. If you use ASP.NET 1.1, add the following statement to the <system.web> section of the application's Web.config file:
				
<httpHandlers>
  <add verb="*" path="ExpertControlsWebResource.axd" 
    type="ASPNETExpert.WebControls.HttpHandler.WebResourceHandler,ASPNETExpert.WebControls"/>
</httpHandlers>
        
			


Create menu structure.
If you run VisualStudio, you can use ExpertMenu Designer.
Otherwise, manually create menu structure.
				
<ec:ExpertMenu id="ExpertMenu1" runat="server" Skin="Office03Blue">
<TopGroup>
  <Items>
    <ec:MenuSeparator />
    <ec:MenuItem Text="File">
      <SubMenu>
        <Items>
          <ec:MenuItem Text="Open" />
          <ec:MenuItem Text="Save" />
        </Items>
      </SubMenu>
    </ec:MenuItem>
    <ec:MenuItem Text="Edit">
      <SubMenu>
        <Items>
          <ec:MenuItem Text="Copy" />
          <ec:MenuItem Text="Paste" />
        </Items>
      </SubMenu>
    </ec:MenuItem>
  </Items>
</TopGroup>
</ec:ExpertMenu>        
        
			
Here is the result:

 


To ease manual editing in Visual Studio, add reference to Expert Controls schema:
				
<body xmlns:ec="urn:http://aspnetexpert.com/ExpertControls.xsd">
        
			
Copyright © 2003-2017 ASP.NET Expert Group. All rights reserved.