Padding Padding
Janet
Systems
 Register  Login 
Telephone  01628 566 178
Website Design, Hosting and Software Services
  Search 
Padding
corner Padding corner
Padding Padding
corner Padding corner
 DotNetNuke Articles

Recently I wanted to include two of my custom modules within a skin. To do this I simply added the following two lines at the top of the skin

<%@ Register TagPrefix="janet" TagName="Menu" src="~/DesktopModules/janet.Menu2/show.ascx" %>

The two controls were then referenced within the skin with the following two commands

<janet:Menu id="Menu" runat="server">
<janet:SkinLinks id="Home" runat="server" TabName="Home">/JANETSKINLINKS>

I found that with either one or the other within the skin there was no problem. However, by adding both to the skin I received the following error:

Could Not Load Skin: /Portals/0/Skins/janet/myskin.ascx Error: Parser Error: Parser Error: Could not load type 'janet.SkinLinks.Show'.

I found that this problem could be resolved by ensuring that the two files which were referenced were not of the same name. Thus for the menu control show.ascx became menu.ascx and for SkinLinks show.ascx became SkinLinks.ascx. The name of the referenced ascx file does not have to reflect the name of hte project.


This article viewed: 1608 times Back

Copyright © 2004-2007 Janet Systems Ltd.

 Print   

For DotNetNuke modules and skins take a look at:

Snowcovered

DotNetNuke Website design and hosting from £15.00 per month. More...

Looking for a website design company in the Thames Valley, call us on 01628 566178

DotNetNuke Modules
DotNetNuke Modules availalble from Janet Systems

DotNetNuke Skins
DotNetNukeSkins.gif

from Janet Systems

Padding
Copyright 2002-2008 Janet Systems Ltd.   Terms Of Use  Privacy Statement Saturday, May 17, 2008