<!--#include file="../stuff/foo/box.aspx"-->
1.可以用
<%: Html.Partial("~/Views/foo/box.ascx") %> OR <% Html.RenderPartial("~/Views/foo/box.ascx"); %>
2.
@Html.Raw(File.ReadAllText(Server.MapPath("~/html/test.html")))
<!--#include file="../stuff/foo/box.aspx"-->
1.可以用
<%: Html.Partial("~/Views/foo/box.ascx") %> OR <% Html.RenderPartial("~/Views/foo/box.ascx"); %>
2.
@Html.Raw(File.ReadAllText(Server.MapPath("~/html/test.html")))
转载于:https://www.cnblogs.com/booth/p/3272779.html