Hello
I'm trying to load a particular page with the "No Skin" control and the "No Container" controls from a link similar to the following:
Globals.NavigateURL(
TabId,
"ControlName", "Param1", ParamValue,
"SkinSrc", Globals.QueryStringEncode( DotNetNuke.UI.Skins.SkinInfo.RootSkin + "/" + Globals.glbHostSkinFolder + "/" + "No Skin" ),
"ContainerSrc", Globals.QueryStringEncode( DotNetNuke.UI.Skins.SkinInfo.RootContainer + "/" + Globals.glbHostSkinFolder + "/" + "No Container" )
);
This produces the following url:
http://localhost/dotnetnuke_source/myportal/tabid/269/ctl/ControlName/Param1/test1/SkinSrc/Skins%2f_default%2fNo+Skin/ContainerSrc/Containers%2f_default%2fNo+Container/Default.aspx
Which produces the following errors:
Could Not Load Skin: /Portals/_default/Skins.ascx Error: The file '/DotNetNuke_Source/Portals/_default/Skins.ascx' does not exist.
Could Not Load Container: /Portals/_default/Containers.ascx
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled error loading module. ---> System.Web.HttpException: The file '/DotNetNuke_Source/Portals/_default/Containers.ascx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.LoadContainer(String ContainerPath, Control objPane) --- End of inner exception stack trace ---
The problem is that in Page_Init on the Default.aspx page, the Request.QueryString("SkinSrc") returns Skins and not Skins/_default/No Skin. I believe the problem is with url encoding the forward slash ( / ).
Could anyone provide some insight on what is wrong with this code snippet?
Thanks