asp.net mvc 中使用 iframe 加载相应的静态html页面进行显示
<iframe src='<%=ResolveUrl("~/Content/HTML_file/Agreement.html")%>'
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<!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>AgreementContent</title>
</head>
<body>
<iframe src='<%=ResolveUrl("~/Content/HTML_file/Agreement.html")%>' width="640px" height="540px" style=" margin-top:3px; margin-left:3px;"></iframe>
</body>
</html>
posted on 2015-10-29 18:05 freeliver54 阅读(5029) 评论(0) 编辑 收藏 举报