MVC中不能使用原生态的#include ,可替代的解决方案

<!--#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