Hello
I have struggled but eventually installed DNN 4.3.4 to my hosting providers server. It is working fine using the original Default.aspx that came with the package and the DNN blue skin.
However, I wish to use CSS skins and therefore require the Default.aspx to be XHTML compliant.
I downloaded the DTD XHTML 1.0 Transitional, default.aspx file for DNN 4 from DNNCreative:
<%@ Page Language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.Framework.DefaultPage" CodeFile="Default.aspx.vb" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Common.Controls" Assembly="DotNetNuke" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head" runat="server">
<title>
<%= Title %>
</title>
<%= Comment %>
<meta name="DESCRIPTION" content="<%= Description %>"/>
<meta name="KEYWORDS" content="<%= KeyWords %>"/>
<meta name="COPYRIGHT" content="<%= Copyright %>"/>
<meta name="GENERATOR" content="<%= Generator %>"/>
<meta name="AUTHOR" content="<%= Author %>"/>
<meta name="RESOURCE-TYPE" content="DOCUMENT"/>
<meta name="DISTRIBUTION" content="GLOBAL"/>
<meta name="ROBOTS" content="INDEX, FOLLOW"/>
<meta name="REVISIT-AFTER" content="1 DAYS"/>
<meta name="RATING" content="GENERAL"/>
<meta http-equiv="PAGE-ENTER" content="RevealTrans(Duration=0,Transition=1)"/>
<style id="StylePlaceholder" runat="server"></style>
<asp:placeholder id="CSS" runat="server"></asp:placeholder>
<asp:placeholder id="FAVICON" runat="server"></asp:placeholder>
<script src="<%= Page.ResolveUrl("js/dnncore.js") %>"></script>
<asp:placeholder id="phDNNHead" runat="server"></asp:placeholder>
</head>
<body id="Body" runat="server" onscroll="__dnn_bodyscroll()" bottommargin="0" leftmargin="0"
topmargin="0" rightmargin="0" marginwidth="0" marginheight="0">
<noscript>
</noscript>
<dnn:Form id="Form" runat="server" ENCTYPE="multipart/form-data" style="”height: 100%;">
<asp:Label ID="SkinError" runat="server" CssClass="NormalRed" Visible="False"></asp:Label>
<asp:PlaceHolder ID="SkinPlaceHolder" runat="server" />
<input id="ScrollTop" runat="server" name="ScrollTop" type="hidden"/>
<input id="__dnnVariable" runat="server" name="__dnnVariable" type="hidden"/>
</dnn:Form>
</body>
</html>
I then replaced the original default.aspx with the one above. But now I can't access the site using the xhtml default.aspx
I see this error message:
Server Error in '/DNN' Application.
--------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30451: Name 'MetaRefresh' is not declared.
Source Error:
Line 174: If PortalSettings.ActiveTab.RefreshInterval > 0 _
Line 175: AndAlso Request.QueryString("ctl") Is Nothing Then
Line 176: MetaRefresh.Content = PortalSettings.ActiveTab.RefreshInterval.ToString
Line 177: Else
Line 178: MetaRefresh.Visible = False
The error will only go away if I go back to the original out of the box, default.aspx.
I only want to use CSS skins and containers, which I understand will not work with: DTD HTML 4.0 Transitional, default.aspx. It must have an xhtml complient default file to work correctly.
I have spent months creating several CSS only skins.
At the moment all I have is the DNN blue on my site.
Any advice or suggestions? Please help.
Thanks.