Step 1:
Response.Redirect(Util.RedirectUrl(this.PortalId, this.TabId, "ControlName", "ModuleName"), false);
Step 2:
public static string RedirectUrl(int PortalId, int TabId, string ControlName, string ModuleName, string Querystring)
{
string _Url = string.Empty;
ModuleInfo objModule = GetModuleByDefinition(PortalId, ModuleName);
return DotNetNuke.Common.Globals.NavigateURL(objModule.TabID, ControlName, "mid=" + objModule.ModuleID.ToString(), Querystring);
}
/////////////////////OR if using querystring
public static string RedirectUrl(int PortalId, int TabId, string ControlName, string ModuleName, string Querystring)
{
string _Url = string.Empty;
ModuleInfo objModule = GetModuleByDefinition(PortalId, ModuleName);
return DotNetNuke.Common.Globals.NavigateURL(objModule.TabID, ControlName, "mid=" + objModule.ModuleID.ToString(), Querystring);
}
No comments:
Post a Comment