By I. T. Lackey on
6/7/2009 2:37 AM
I had to publish this bit of information, on how to get the Url of the settings page for a DotNetNuke module. Though it may be simple or even common knowledge to many, I could not find it quickly by Googling or Binging (that’s a post all of its own) it. So I decided I would post it just in case someone else was looking for it.
It turns out, it is very easy to generate the Url needed to navigate to the settings page of any given module. In this example I have used an Asp Hyperlink control on a module and set it’s ID to SettingsLink. Then in the code behind I use this code to set the NavigateUrl property to the Url of the settings page:
Me.SettingsLink.NavigateUrl = NavigateURL("Module", "ModuleId", Me.ModuleId.ToString)
You could also do this inline on the module control if you like, which would look something like this:
a href=''>Settingsa>
Using the DotNetNuke.Common.Globals.NavigateURL method makes it very simple to get the Url needed to direct a user to the...