设置全局theme及读取theme方法

在web.config中设置了默认的Theme,其部分如下的配置节点:

<system.web>
<pages theme="Default" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>

</system.web>


如何读取theme的值,可以看我以下的代码。

System.Web.Configuration.PagesSection ps  =  (System.Web.Configuration.PagesSection)System.Configuration.ConfigurationManager.GetSection( " system.web/pages " );

TextBox1.Text 
=  ps.Theme;

你可能感兴趣的:(theme)