你的位置:首页 > ASP.net教程

[ASP.net教程]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 ="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" ></iframe>  </body></html>