首页 新闻 会员 周边

在ASP.NET MVC下使用frameset框架!

0
悬赏园豆:20 [已解决问题] 解决于 2014-12-03 11:23

页面代码

<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master"

AutoEventWireup="true"
    Inherits="System.Web.Mvc.ViewPage" %>

<%@ Import Namespace="Home.Web.Controllers" %>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <frameset rows="59,*" cols="*" frameborder="no" border="0" framespacing="0">
  <frame src="<%=Url.Action("Top") %>" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
  <frameset cols="213,*" frameborder="no" border="0" framespacing="0">
    <frame src="<%=Url.Action("Left") %>" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
    <frame src="demo/files/editgongnen.htm" name="mainFrame" id="mainFrame" title="mainFrame" />
   
  </frameset>
</frameset>
    <noframes></noframes>
</asp:Content>

后台代码

IUserService _userService = ServiceLocator.Current.GetInstance<IUserService>();
        public ActionResult Index()
        {
            return View("Index");
        }
        public ActionResult Main()
        {
            return View("Main");
        }
        public ActionResult Top()
        {
            return View("Top");
        }
        public ActionResult Left()
        {
            return View("Left");
        }
        public ActionResult Login()
        {
            return View();
        }

 

但是打开index页面无法打开 left/top/页面。。

sparkLove的主页 sparkLove | 初学一级 | 园豆:140
提问于:2012-03-13 18:03
< >
分享
最佳答案
0

....页面模板问题。。

sparkLove | 初学一级 |园豆:140 | 2012-03-13 18:19
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册