排除“使用主题 css 文件要求页上有标头控件。(例如 <head runat="server" />)”错误

使用主题 css 文件要求页上有标头控件。(例如 <head runat="server" />)

原来,生产环境上部署了Theme。
用下面的方法可以为站点某个目录去掉Theme
    在此目录下建立一个web.config文件,在system.web节输入以下内容:
    <system.web>
  <pages styleSheetTheme="" enableViewState="true"></pages>

    </system.web>

再打开刚才的页面,效果已经正常显示了!

主要是全局设置了Theme

原文地址:https://www.cnblogs.com/aaa6818162/p/2093455.html