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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Error in using ascx skin fileError in using ascx skin file
Previous
 
Next
New Post
8/23/2010 8:17 AM
 
Hello,

at first: sorry for my bad english!

Im a bloody noob in using DNN. I creating me some html skins for my DNN portal. But now i want to try an .ascx file as skin file and when i use the "ascx skin" i will get this error:

"Could Not Load Skin: /Portals/_default/Skins/QualliMain-Skins/test.ascx, Error: The directive 'page' is unknown."

This is my code:

<%@ Page Language="VB" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>

<%@ Register TagPrefix="dnn" TagName="Login" Src="~/Admin/Skins/Login.ascx" %>

<%@ Register TagPrefix="dnn" TagName="Copyright" Src="~/Admin/Skins/Copyright.ascx" %>

<link href="test.css" rel="stylesheet" type="text/css" />

<div class="DNNCenterDiv">

<div id="MainDiv">

<object id="ControlPanel" codetype="dotnetnuke/server" codebase="CONTENTPANE">

</object>

<ul class="HeadUl">

<li class="topHead">

<dnn:Login runat="server" id="dnnLogin" />

| <a href="LinkClick.aspx">Impressum</a> | <a href="LinkClick.aspx">Support</a></li>

<li class="topAppChangeOnline"></li>

</ul>

<div class="ContentAreaDiv">

<div class="definhalt">

<div class="contentpane1" runat="server" id="ContentPane">

</div>

<div class="contentpane2" runat="server" id="ContentPane2">

</div>

<div class="contentpane3" runat="server" id="ContentPane3">

</div>

<div class="clear">

</div>

</div>

<ul class="footerUl">

<li><a href="/cms/Default.aspx?tabid=96" class="FBForumOnline">Forum</a></li>

<li><a href="http://www.nistech.de" target="_blank" class="FBNistechOnline">Nistech

GmbH</a></li>

<li><a href="/cms/Default.aspx?tabid=104" class="FBtvOnline">Premium</a></li>

<li><a href="/cms/Default.aspx?tabid=106" class="FBdlsOnline">Downloads</a></li>

<li class="FCopyOnline">

<dnn:Copyright runat="server" id="dnnCopyright" /></li>

</ul>

</div>

</div>

</div>

Thanks for answers.

 
New Post
8/23/2010 12:27 PM
 
take a look the minimal extropy skin that comes with DNN, the page directive should not be there and you should use this instead:
<%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
 
New Post
8/24/2010 3:42 AM
 
it works =) thank you
 
New Post
9/20/2011 10:37 AM
 
I am trying to write a skin to remove the top menu from pages that will only show up in Iframe and i wrote this skin to do that but I am getting the error message Could Not Load Skin: /Portals/_default//skins/wphoweb/iframemenu.ascx, Error: The directive 'page' is unknown. Here is my code:

<%@ Page Language="C#" Debug="true"%>

<head>
<meta name="ProgId" content="SharePoint.WebPartPage.Document">
<meta name="WebPartPageExpansion" content="full">
</head>
<%@ Control language="vb" CodeBehind="~/admin/Skins/skin.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="COPYRIGHT" Src="~/Admin/Skins/Copyright.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TERMS" Src="~/Admin/Skins/Terms.ascx" %>
<%@ Register TagPrefix="dnn" TagName="PRIVACY" Src="~/Admin/Skins/Privacy.ascx" %>
<%@ Register TagPrefix="dnn" TagName="DOTNETNUKE" Src="~/Admin/Skins/DotNetNuke.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LANGUAGE" Src="~/Admin/Skins/Language.ascx" %>
<TABLE class="pagemaster"  width="600px" border="0"  cellspacing="0" cellpadding="0">
 <TR>
  <TD valign="top">
   <TABLE class="skinmaster"  width="600px" border="0" align="center" cellspacing="0" cellpadding="0">
    <TR>
     <TD id="ControlPanel" runat="server" class="contentpane" valign="top" align="center"></TD>
    </TR>
    <tr>
    <td>
    <TABLE class="skingradient" cellSpacing="0" cellPadding="3" width="100%" border="0" style="filter: alpha (opacity=70);">
       <TR>
         <TD width="100%" vAlign="middle" align="left" nowrap>&nbsp;</TD>
         
       </TR>
    </TABLE>
</td>
</tr>
    <TR>
     <TD valign="top" height="100%">
      <TABLE cellspacing="3" cellpadding="3" width="100%" border="0">
         <TR>
           <TD class="toppane" colspan="3" id="TopPane" runat="server" valign="top" align="center"></TD>
         </TR>
         <TR valign="top">
           <TD class="letftpane" id="LeftPane" runat="server" valign="top" align="center"></TD>
           <TD class="contentpane" id="ContentPane" runat="server" valign="top" align="center"></TD>
           <TD class="rightpane" id="RightPane" runat="server" valign="top" align="center"></TD>
         </TR>
         <TR>
           <TD class="bottompane" colspan="3" id="BottomPane" runat="server" valign="top" align="center"></TD>
         </TR>
      </TABLE>
     </TD>
    </TR>
    <TR>
     <TD valign="top">
      <TABLE class="skingradient" cellSpacing="0" cellPadding="0" width="100%" border="0" style="filter: alpha (opacity=70);">
         <TR>
           <TD valign="middle" align="center"><dnn:COPYRIGHT runat="server" id="dnnCOPYRIGHT" />&nbsp;&nbsp;<dnn:TERMS runat="server" id="dnnTERMS" />&nbsp;&nbsp;<dnn:PRIVACY runat="server" id="dnnPRIVACY" /></TD>
         </TR>
      </TABLE>
     </TD>
    </TR>
    <TR>
     <TD valign="top" align="center"><dnn:DOTNETNUKE runat="server" id="dnnDOTNETNUKE" /></TD>
    </TR>
   </TABLE>
  </TD>
 </TR>
</TABLE>



 
New Post
9/20/2011 10:58 AM
 
An ascx is a control.  It should not start with a Page directive.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Error in using ascx skin fileError in using ascx skin file


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