由于服务器标签不完善,DotNetNuke报告皮肤错误

时间:2012-03-15 15:36:17

标签: dotnetnuke skinning

这看起来似乎微不足道,但我无法弄清楚为什么DNN会报告此错误,我的标记似乎很干净..

皮肤功能完全正常,直到我通过css添加背景并总结解析皮肤..

检查未关闭的括号或缺少占位符,但找不到任何。

任何想法?

    <!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>
    <title>ITM America</title>
    <link rel="Stylesheet" type="text/css" href="skin.css" />
    <link href='http://fonts.googleapis.com/css?family=Ruda&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
</head>
<body>
    <div id="wrapper">
        <div id="headerContainer">
            <div id="logoPane" runat="server">
                <object id="dnnLOGIN" codetype="dotnetnuke/server" codebase="LOGIN">
                    <param name="CssClass" value="user" />
                </object>
            </div>
            <div id="contactPaneEmail" class="contact" runat="server">
                hello@asdasd.com
            </div>
            <div id="contactPaneTelNumber" class="contact"runat="server">
                TELEPHONE +1 1234567899
            </div>
            <div id="navPane" runat="server">
                topnav
            </div>
        </div>
        <div id="bodyContainer">
            <div id="generalSloganPane" runat="server">
                ORGANIZE FLEXIBILITY
            </div>
            <div id="tabPane" runat="server">
                METHODS
            </div>
            <div id="specificSloganPane" runat="server">
                specificSlogan
            </div>
            <div id="ContentPane" runat="server">
                basdasd
            </div>
            <div id="imagePane" runat="server">
                image123
            </div>
        </div>
        <div id="footer" runat="server">
            footer
        </div>
    </div>
</body>
</html>

2 个答案:

答案 0 :(得分:1)

看起来在runat = server标记之前缺少空格,也许这解决了:

<div id="contactPaneTelNumber" class="contact"runat="server">
            TELEPHONE +1 1234567899
        </div>

答案 1 :(得分:0)

我没有看到任何明显的问题,但DotNetNuke将为您上传的.html文件生成.ascx文件。您应该查看(和/或粘贴)该文件。通常,当嵌套引号不正确时,您会看到该错误。