与母版页没有联系的 asp webform 正在提取母版页包含文件
在我的 asp.net Web 应用程序中,我创建了一个新的 Web 表单(没有母版页)。此页面的代码如下所示:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SearchPreload.aspx.cs" Inherits="CMS.ContractManagement.SearchPreload" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
</body>
</html>
但是,当我查看页面时,我有一个背景图像,当我在页面上查看源代码时,我可以看到:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
</title><link href="../App_Themes/basic/ChangePasswordExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/CreateUserWizardExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/DataListExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/DetailsViewExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/ExamplesMaster.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/FormViewExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/GridViewExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/LoginExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/LoginStatusExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/MainMaster.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/MenuExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/PasswordRecoveryExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/SrcViewer.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/TreeViewExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/WhitePaper.css" type="text/css" rel="stylesheet" /></head>
<body>
</body>
</html>
它来自哪里以及如何删除它?该页面仅用于执行一些数据库操作并编写要输入 jQuery 函数的 JavaScript 数组。
In my asp.net web application I created a new web form (with NO master page). The code to this page looks like this:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SearchPreload.aspx.cs" Inherits="CMS.ContractManagement.SearchPreload" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
</body>
</html>
however when I view the page, I have a background image, and when I do a view source on the page, I can see this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
</title><link href="../App_Themes/basic/ChangePasswordExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/CreateUserWizardExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/DataListExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/DetailsViewExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/ExamplesMaster.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/FormViewExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/GridViewExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/LoginExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/LoginStatusExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/MainMaster.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/MenuExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/PasswordRecoveryExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/SrcViewer.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/TreeViewExample.css" type="text/css" rel="stylesheet" /><link href="../App_Themes/basic/WhitePaper.css" type="text/css" rel="stylesheet" /></head>
<body>
</body>
</html>
Where is this coming from and how can I remove it? This page is only used to do some database manipulation and write out a javascript array to be fed into a jQuery function.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的网站是否已设置为使用 web.config 中的 App_Themes?如果是这样,那么它会自动将任何样式表添加到所有 .aspx 页面。
检查您的 web.config 中的
Do you have your site set up to use the App_Themes in the web.config? If so, then it will automatically add any stylesheet to all of your .aspx pages.
Check your web.config for
<page theme="">