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.0My skin switches automatically in 2nd view moduleMy skin switches automatically in 2nd view module
Previous
 
Next
New Post
11/13/2006 4:36 PM
 

I created a custom skin and applied it to my entire site.  When I create a new page, the custom skin displays.   I have a page with a module I created and the custom skin displays on this page.  So far, so good.

But, then I created a second ascx file in the same module definition (2 separate ascx files in the same module).  I created a link from the page to display the second ascx file, but when I switch to the second ascx file (same module, same page), the skin switches back to the DotNetNuke default skin.

What am I doing wrong?

Thank you for your help.

Mark

 
New Post
11/13/2006 5:55 PM
 
Hi Mark, the problem is with your module, not your skin.  See this thread...
 
New Post
11/13/2006 11:58 PM
 

Thanks Sam.  After reading the thread you sent me to I realized that I did not make any changes to the Module Configuration or to the Local Resource Files when I created my second ascx file in the module. 

The problem is I don't know what changes I need to make.  I tried looking at some of the resource files, and I tried adding the control to the page content (modifying code from the other post) but neither solution worked for me. 

Here's the code I added to the 2nd ascx file.

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

 

            Dim TempControl As DotNetNuke.Entities.Modules.PortalModuleBase

 

            TempControl = CType(LoadControl("~/DesktopModules/PPYourClasses/PPYourClassesReceipt.ascx"), DotNetNuke.Entities.Modules.PortalModuleBase)

            TempControl.ModuleConfiguration = Me.ModuleConfiguration

            TempControl.LocalResourceFile = Me.TemplateSourceDirectory & "/" & DotNetNuke.Services.Localization.Localization.LocalResourceDirectory & "/<Usercontrol>.ascx.resx"

 

            If Not TempControl Is Nothing Then

                TempControl.ModuleConfiguration = Me.ModuleConfiguration

                Controls.Add(TempControl)

            End If

 

        End Sub

 

What am I doing wrong???

 

Thanks again for your help Sam.

 


Mark

 
New Post
11/14/2006 7:33 AM
 

MODERATOR:
Please move this thread to the Extend It forum.

Mark, I can't help but there are plenty of people in the programming forums who can.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0My skin switches automatically in 2nd view moduleMy skin switches automatically in 2nd view module


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