• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
游戏王!
博客园 首页 新随笔 联系 订阅 订阅 管理

2017年9月6日

MVC布局
摘要: 1.控制器 public ActionResult UpBelow() { return View(); } public ActionResult Content() { return View(); } 2.UpBelow()视图 @{ Layout = null;} <!DOCTYPE htm 阅读全文
posted @ 2017-09-06 10:08 寻找忆梦 阅读(114) 评论(0) 推荐(0)
 
 

2017年9月5日

授权过滤器
摘要: 在一个控制器或方法前加上[Authorize],这控制器或方法就需要登录后才能访问 例如: [Authorize] public class studentsController : Controller { student stu = new student(); int n = 0; int P 阅读全文
posted @ 2017-09-05 09:46 寻找忆梦 阅读(131) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3