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 Size

In this lesson we will take a look on another very important property of list modules, page size.

Single Page size

Page size property allows developers to specify the number of records shown on each page of grid list. You can specify static or dynamic page value.

M# generates the grid list with the “PageSize” attribute having the specified value. M# also provides a property “Pager Position” to specify the position of the paging links.

Multiple Page Sizes

M# provides another comprehensive section to manage multiple page sizes. You can do this by expanding the page size section on list module. Focusing inside this section will allows you to choose the position on the page where page sizes will be displayed.

On selecting the position, M# adds pager with multiple page sizes, as shown below

M# generates the ASP.NET mark-up just after the GridView control. The ASP.NET mark-up contains “Dropdown List” having all the page options, as shown in the screenshot below:

Page Size Customization

M# provides attributes for each pager, which can be used to customize the layout and behaviour of the pager, as shown below

Auto Post Back

This property determines whether the renders pager control should do post back.


You can use this option to change the default label shown aside the pager options.

Option Text Format

You can use this option to specify the format of the text shown as the page sizes. You must use “{0}” terms to reference each page size option.

Use Link Style

M# renders dropdown list to show all the page size options. You can use this property to render the page size options as links and then you can use css classes to further customize the layout.

Wrapper Css Class

This attribute can be used to apply css classes on the wrapper HTML element of the pager options.