Using themed css files requires a header control on the page. (e.g. <head runat=“server” />)

前端 未结 7 1250
没有蜡笔的小新
没有蜡笔的小新 2021-02-12 15:24

I\'m working on asp.net web project. When I run the project, It works correctly. But In server, I got the following error. How to solve this problem?

Using theme         


        
7条回答
  •  庸人自扰
    2021-02-12 16:00

    I feel none of the answers made above can resolve the actual issue faced by user if the page is not meant to render html. In this case, the solution is - just paste following

    EnableTheming = "False" StylesheetTheme="" Theme="" 
    

    in the @Page attribute of that page.

    For example, the following source code sample:

    DownloadFile.aspx.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DownloadFile.aspx.cs"
        Inherits="WebUI.Monitorization.DownloadFile"  EnableTheming="False" StylesheetTheme="" Theme=""   %>
    

提交回复
热议问题