1

我无法使主题/皮肤在 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" />

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

4

2 回答 2

1

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

于 2009-07-27T22:58:57.507 回答
0

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

于 2009-07-27T23:08:23.057 回答