可以的,给你一个上左右结构示例:
framesettest.aspx(注意src的写法,没有.aspx后缀名):
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<!DOCTYPE html>
<html>
<frameset rows="50%,50%">
<frame src="top">
<frameset cols="25%,75%">
<frame src="left">
<frame src="right">
</frameset>
</frameset>
</html>
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title>top</title>
</head>
<body>
<div>
data:<%=ViewData["abc"] %>
</div>
</body>
</html>
public ActionResult framesettest()
{
return View();
}
public ActionResult top()
{
ViewData["abc"] = "top";
return View();
}
public ActionResult left()
{
ViewData["abc"] = "left";
return View();
}
public ActionResult right()
{
ViewData["abc"] = "right";
return View();
}
这,有关系吗?frameset难道不能用在MVC里面?
你用的什么MVC?