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

前端 未结 7 953
[愿得一人]
[愿得一人] 2021-02-12 15:41

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:08

    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=""   %>
    

提交回复
热议问题