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...Administration ...Administration ...Edit default.aspx for CSSEdit default.aspx for CSS
Previous
 
Next
New Post
8/13/2006 6:48 AM
 

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.

 


 


www.seemalta.net
 
New Post
8/13/2006 6:56 PM
 

Seek help from DNNCreative, as once you go down a custom path like this it is difficult for us to know what all other custom changes were done. In this case, I would make sure the version they gave you matches and is tested against your DNN version. ANother thing is it seems the MetaRefresh is missing from the DNNCreative code.


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Edit default.aspx for CSSEdit default.aspx for CSS


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