日期:2014-05-18  浏览次数:20416 次

asp.net mvc 中页面跳转问题
我有一个List页面在里面点击一条信息的编辑,打开一个窗口Edit编辑页面(是用框架做的),编辑完成以后,点击保存,在controller中如何跳转到List页面,并且关闭Edit模式窗口。本人用过RedirectToAction。它是在编辑窗口中打开的List页面。不符合需求。求高手指点,怎么让他跳到一开始的List页面,而不是在编辑的窗口的中打开。

------解决方案--------------------
return RedirectToAction("信息列表的Action", new { id = 那条信息的ID.字段ID });
------解决方案--------------------
return Content("<script>parent.tb_remove();parent.window.location='/Home/List';</script>");

parent.window 父级窗体