解决方案 »

  1.   


     return Redirect("Views/Login/Index");
              //  return RedirectToRoute(new { Controller = "Controllers/Login", Action = "Index"});
                return RedirectToAction("Index", "Controllers/Login"); 试了3种方法都没能跳转过去啊
      

  2.   

     
    能给个方法吗、? 别网上copy 好吗、?
      

  3.   


    挑战后抛了 :未经处理的异常,行 602,列 6,在 http://localhost:34529/Scripts/jquery-1.9.1.js 中0x80020101 - Microsoft JScript 运行时错误: 由于出现错误 80020101 而导致此项操作无法完成。
      

  4.   

    控制器不以像路径那么写“Controllers/Login"是不对的。
      

  5.   

    RedirectToAction是转到控制器某个方法,而不是转到视图。如果你是在同一个COntroller里跳转,
    直接用它最简单的重载RecirectToAction(ActionName)就行了
      

  6.   


    恩 在不同的control里面跳转的, return RedirectToAction("Logout", "Login", new { area = "" }); 现在能跳转了,但是会抛js错 ,不知道是不是前端页面设置了接受后台的数据属性 为true了