ASP.NET JSP相当于包括

编程入门 行业动态 更新时间:2024-10-19 18:29:22
本文介绍了ASP.NET JSP相当于包括的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在JSP中,我可以通过使用共享HTML code包括:

In JSP I can share HTML code by using include:

<jsp:include page="subsection.jsp" >

有关我的生活,我不能告诉如何在ASP.NET中我应该包括共享HTML。我可以用一个模板控制,但是这确实是不一样的东西。我可以使用一个网站母版页和内容占位符,但是这也并不相同,需要不同的方法来开发我的网页。

For the life of me, I can't tell how in ASP.NET I should be including shared HTML. I could use a template control, but this really isn't the same thing. I could use a site master page and content placeholders, but this also is not the same and requires a different approach to developing my pages.

我是运气不好还是有在ASP.NET中类似的功能JSP的包括哪些内容?

Am I out of luck or is there a function in ASP.NET similar to JSP's include?

推荐答案

您必须从服务器启用它那么不仅可以使用包括HTML文件。

You will have to enable it from the server then only you can use include html files.

<!-- #include file="Static/Menu.html" -->

指令IIS7使SSI可在的 tech.mikeal/

有关动态内容,这里的模板称为MasterPages的一个内置的方法,这应该被代替使用。

For dynamic content, there is a built-in method of templating called MasterPages, this should be used instead.

更多推荐

ASP.NET JSP相当于包括

本文发布于:2023-11-03 15:28:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1555450.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:ASP   NET   JSP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!