New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Module navigation

Return to previous page

  • 4/7/2015



Module navigation

Last updated long time ago



(Enter the content of this article below)



A DotNetNuke module is a collection of User Controls (.ascx files). These are grouped together by a module definition.

Default controls for a module are:
  • View
  • Edit
  • Settings

To navigate to different user controls you use the navigateurl method(s) which correctly build a path and also run the path through the friendly url provider to ensure it follows the applied format. It's most basic format allows the current tab(page) and module to access related controls are looks like this:

Navigate to View control

You can navigate to the View control by:
Response.Redirect(Globals.NavigateURL(), true)

This code essentially adds a controlkey of "view" to load the relevant view control

Navigate to shared control

There are a lot of shared controls such as login, register and access denied that can be called. In each case you supply the tabid with the call so the logic can determine which portal the shared control is using e.g.
NavigateURL(portalSettings.ActiveTab.TabID, "Login")

In some cases this tabid is optional e.g. for access denied either of the following two calls is fine

Response.Redirect(Globals.NavigateURL("Access Denied"), true);

NavigateURL(_portalSettings.ActiveTab.TabID, "Access Denied");

Passing additional parameters

The NavigateURL methods also support passing additional parameters via parameter collections e.g.
NavigateURL(_portalSettings.ActiveTab.TabID, "Register", extraParams);


NavigateURL(_portalSettings.ActiveTab.TabID, "", "UserID=" + userID + "&Param2=" + paramValue + "&param3=" + param3Value);


NavigateURL(_portalSettings.ActiveTab.TabID, "Profile", "UserID=" + userID);

Navigate to Edit control

You can navigate to the Edit control by:

Note: edit controls load in an admin skin (i.e. have 1 central contentpane)

Navigate from Edit control

As noted, you can load the view control via a simple request:

However if you want to also pass some information back from the edit control you will need to provide that to the method.
The navigateurl overloads also enable the ability to specify a moduleid as well -in the following example a path is generated based on the tabid and mid (moduleid) - in this case rather than use a controlkey at the start the path adds "ctl" and "details" (which is the view control) which adds the necessary fields

DotNetNuke.Common.Globals.NavigateURL(TabId, "","mid", ((int)DataBinder.Eval(Container.DataItem,"ModuleID")).ToString(),"CourseID", ((int)DataBinder.Eval(Container.DataItem,"CourseID")).ToString(),"ctl", "Details", "")

Additional reference

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out