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.