7、ontrollers{ public class AccountController:Controller { // //GET:/Account/ [Authorize] public ActionResultIndex() { return View(); } // // GET:/Account/Login [HttpGet] public ActionResultLogin() {
8、 //如果是跳转过来的,则返回上一页面ReturnUrl if (!string.IsNullOrEmpty(Request["ReturnUrl"])) { string returnUrl=Request["ReturnUrl"]; ViewData["ReturnUrl"]=returnUrl; //如果存在返回,则存在隐藏标签中 } //如果是登录状态,则条转到个人主页 if (S