62,074
社区成员
发帖
与我相关
我的任务
分享
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
<!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>Menu Index</title>
</head>
<body>
<frameset name="main" rows="100,*,50" frameborder="no" border="0" framespacing="0" >
<frame src="Menu/Top" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
<frameset cols="25%,75%">
<frame src="Menu/Left" name="LeftFrame" id="LeftFrame" />
<frame src="Menu/Right" name="RightFrame" id="RightFrame" />
</frameset>
<frame src="Menu/Bottom" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" />
</frameset>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
namespace MyMvc3.Controllers.Menu
{
public class MenuController:Controller
{
public ActionResult Index()
{
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();
}
public ActionResult Bottom()
{
ViewData["abc"] = "bottom";
return View();
}
}
}