M# Tutorials

Learn to build .NET applications with M#. Our step-by-step tutorials will get you up-to-speed rapidly.
If you already know ASP.NET and C#, you can master M# in a week or two.

Using (referencing) menus

In this tutorial we will learn how to display your menus in a page and how to place them.

Directly on page

A menu can be directly on a page, like other modules are (views / lists / forms). This technique allows you to move your menu around your modules.

Referenced module

You can also reference your menu in a module, and display for example this reference in the header. This technique allows you to move your menu exactly where you want in your module.

Side/Top menu

This is the most common way to reference a menu in your application. The majority of applications have a top and a side menu, that's why M# integrates some shortcuts for adding those types of menu in the default application template.
If you open a page in M# you can see a Settings area. In this section you can either select "SideMenu" or "TopMenu" to specify the menu location. The value is the name of your menu in Pascal case.

The big advantage of this is that the menu is correctly located in your page and uses your menu containers. Moreover by settings this the menu will be applied to all subpages (page level inheritance). In our example both the page Employee.aspx and Employee/Edit.aspx will share the same top menu.

Refer to Chapter 6- Page settings to learn how to add new settings.