本来一直打算找到动态更新asp.net2.0的整个站点的theme设置的简便方法,一直没找到,现在还是用的老办法。每个页面都重写page.Theme = myPage.currentTheme;通过动态更新myPage.currentTheme这个全局变量来达到这个目的。
其中在web.config中设置了默认的Theme,其部分如下的配置节点:
<system.web>
<pages theme="Default"/>
</system.web>
很多人不知道如何读取theme的值,可以看我以下的代码。



我也希望有人能解决我的问题,谢谢。