I am damn confuse in TabId
and ModuleId
which need to pass as parameters in Globals.NavigateURL
.
I have created a project with 2 UserControl. Now I want to navigate in button click event of first UserControl.
I have reviewed some reference. Most of them suggest to pass TabId, Key and ModuleId
. I know Key
but I don't know what is TabId
and ModuleId
and how to get it in my .cs
file of usercontrol.
Can anybody please suggest me?
In answering your other question, I told you that the following two lines of code are equivalent:
string miUrl = base.EditUrl("ModuleInfo");
string miUrl = DotNetNuke.Common.Globals.NavigateURL(base.TabId, "ModuleInfo", String.Format("mid={0}", base.ModuleId));
If you inherit from PortalModuleBase, you have access to TabId and ModuleId in the base class. If you only need to navigate to a module control (view) in the same module, base.EditUrl() works fine. You need to use NavigateUrl() if you need to navigate to another module or to another page (tab).