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.

Introduction to Actions

Action in common language is about performing some process to complete a task. Websites expose interactive buttons (image / link) to let users perform the required task on a webpage.

In M# every single task we specify inside a “Button” is called an “Action”. M# provides built-in actions to support common tasks e.g. navigation, closing modal, saving record, login user etc. M# also allows developers to implement custom actions and encourages developers to break down the code into meaningful small chunks.

M# provides a list of all the available actions when you focus inside a button on a module, below is a screenshot a button of view module showing a list of actions available.

You can use as many actions as required including custom actions. M# also supports conditional action means you can specify a role based or custom condition for any action e.g. you want to two navigate actions one for admin and one for member.

M# shows a warning if any action subdues any following actions e.g. you are displaying a message following a navigate action then the message action becomes subdued and M# warns developers to either arrange the actions in proper sequence or apply conditions accordingly.

Actions can also be arranged in sequence. In order to move an action above or below another action, simply select the action and press navigation “Up or Down” key while holding “Ctrl” key on keyboard to alter sequence of actions.