使用主题css文件需要页面上的标题控件。 [英] Using themed css files requires a header control on the page.

查看:129
本文介绍了使用主题css文件需要页面上的标题控件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误,可以帮助我。谢谢。



使用主题css文件需要页面上的标题控件。 (例如

i am getting below error,can any help me.thankX

Using themed css files requires a header control on the page. (e.g.

<head runat="server" />).

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Using themed css files requires a header control on the page. (e.g. <head runat="server" />).

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below

推荐答案

您需要一个带<$的头标记页面(或母版页)中的c $ c> runat =server如下:

You need a head tag with runat="server" in the page (or master page) as below:
<head runat="server">
    <title></title>
</head>



参考ASP.NET主题和必需的头部对象 [ ^ ]。



--Amit


Refer ASP.NET Themes and required Head objects[^].

--Amit


Amit thankx您的回复

亲爱的我已经添加了aspx页面,但仍然得到相同的错误。即使我添加了具有单个文本行的div的测试页面,并且当从域浏览时仍然是相同的错误。
Amit thankx for your reply
dear i already add in aspx page,but still getting the same error.even i add test page having a div with single text line and when browsing from domain still same Error.


这篇关于使用主题css文件需要页面上的标题控件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆