网站上有母版页,但 ASP.NET 源代码中没有母版页?

发布于 2024-11-28 09:24:05 字数 106 浏览 0 评论 0原文

我获得了包含母版页的网站源代码,但源代码中不包含母版页。我尝试放置与我自己制作的相同的母版页并尝试在其上执行,但它不起作用。似乎已经有一些母版页,我可以在已发布的文件中看到它们,但在源代码中找不到。

I got source code of website which have included master pages but master pages are not included in source code. I have tried to put the same master page which i made myself and try to execute on it but it doesn't work. It seems there is already some master pages which i can see in published files but i cannot find in source.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

披肩女神 2024-12-05 09:24:05

如果您没有选择允许此预编译站点可更新,则母版页不会出现在您的源代码中,因为它们会作为 .dll 编译到 bin 文件夹中 文件。

如果您打开任何 .aspx 文件,您将看到内容如下:

This is a marker file generated by the precompilation tool, and should not be deleted!

如果您需要能够在网站的已发布版本中编辑标记代码,请确保允许此预编译网站可更新 发布时选择。

If you didnt select Allow this precompiled site to be updatable then Master Pages won't appear in your source code as they are compiled into the bin folder as .dll files.

If you open up any .aspx file you will see that the content is just:

This is a marker file generated by the precompilation tool, and should not be deleted!

If you need to be able to edit the markup code in the published version of the site, ensure that Allow this precompiled site to be updatable is selected when publishing.

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