您的位置:首页 > 其它

后台跳转到登录页嵌套在iframe的问题(MVC例)

2013-08-06 13:58 387 查看
//首页
public ActionResult Index()
{
if (!Request.IsAuthenticated) //判断权限,没有登录就跳回登录页
{string url =  Url.Action("Index", "Start", new {  area=""});
Response.Write("parent.window.location.href('" + url + "');");
}

return View();
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: