Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How do I load the a page with "No Skin" and "No Container"?How do I load the a page with "No Skin" and "No Container"?
Previous
 
Next
New Post
7/21/2008 12:05 PM
 

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

 
New Post
7/22/2008 1:56 PM
 

I found the answer to this, hopefully this will help someone else with the same problem.

return Globals.NavigateURL(
                    TabId,
                    "ControlName", "Param1", ParamValue,
                    "SkinSrc=[G]" + Globals.QueryStringEncode( DotNetNuke.UI.Skins.SkinInfo.RootSkin + "/" + Globals.glbHostSkinFolder + "/" + "No Skin" ),
                    "ContainerSrc=[G]" + Globals.QueryStringEncode( DotNetNuke.UI.Skins.SkinInfo.RootContainer + "/" + Globals.glbHostSkinFolder + "/" + "No Container" )
                    ); 

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How do I load the a page with "No Skin" and "No Container"?How do I load the a page with "No Skin" and "No Container"?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out