【问题标题】:Themes/Skins doesn't work any more in VS2008主题/皮肤在 VS2008 中不再起作用
【发布时间】:2009-07-27 22:54:42
【问题描述】:

我无法让主题/皮肤在 VS2008 中工作。同样的 asp.net2.0 代码在 VS2005 中运行良好。

我正在使用 Masterpage,在内容页面内部我会有类似的内容: <asp:Button ID="testid" runat="server" SkinID="RedBlueButton" Text="TestButton"></asp:Button>

在 App_Themes/Default/button.skin 文件中,我会有类似的东西

<asp:Button SkinID="RedBlueButton" runat="server" BackColor="Blue" ForeColor="Red" Font-Name="Arial" Font-Size="9px" />

但按钮仍显示为白色。有人知道为什么吗?谢谢。

【问题讨论】:

    标签: asp.net themes skin


    【解决方案1】:

    您确定在 web.config 中指定了主题吗?

    【讨论】:

      【解决方案2】:

      好的,当我在 &lt;%@ Page &gt; 指令中明确添加 Theme="Default" 时,它再次起作用。但是,即使我所有的主题文件都在 App_Themes/Default/ 下,它仍然抱怨“默认”是一个无效的主题名称。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-11-10
        • 1970-01-01
        相关资源
        最近更新 更多