设置全局theme及读取theme方法

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

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

</system.web>it


如何读取theme的值,能够看我如下的代码。io

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

TextBox1.Text 
=  ps.Theme;
相关文章
相关标签/搜索