与母版页没有联系的 asp webform 正在提取母版页包含文件

发布于 2024-11-09 16:44:24 字数 2360 浏览 3 评论 0原文

在我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

熊抱啵儿 2024-11-16 16:44:24

您的网站是否已设置为使用 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="">

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文