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.

Page Header

In this lesson we will talk about the properties of a module in M#, which we can use to specify header contents.

M# provides three properties for specifying header contents. You can specify simple HTML marl-up or dynamic contents as required.

Header Text

M# encourages using this property when you want to specify the heading of the page, which is either dynamic or static. This property is rendered as h2 HTML element tag and contains the contents specified. M# also populates this property by default when a module is created.

The screenshot shown above uses a dynamic header text value. “c#:” keyword is recognised by M# as dynamic content and generates asp.net server tags.

Header

This property can be used as an alternative to the afore-mentioned “Header Text” property, but M# allows you to use both properties. You can specify custom HTML mark-up or dynamic contents but you cannot use “c#:” keyword. In order to specify dynamic contents, you must apply the asp.net server tags as shown below:

Item Header

This property is only available for list module. You specify HTML mark-up with dynamic or static contents in this property. M# generates a HTML container element marked with “Runat=server” attribute and “id=divHeader”.