摘要:
直接上代码,不要说话。ASP.NET MVC4过滤器的简单应用:验证登录1 [AcceptVerbs(HttpVerbs.Post)]2 public ActionResult login(FormCollection form)3 {4 Session["login"] = "True";5 return Redirect("/Home/Index");6 7 }View Code 1 [IsLogin]2 public ActionResult Index(... 阅读全文