MVC
烧饼丶
这个作者很懒,什么都没留下…
展开
-
基于Session单点登录
拦截器拦截未登录的请求 public class BaseController : Controller { protected override void OnActionExecuting(ActionExecutingContext filterContext) { //用于拦截未登录的请求 base.OnActionExecuting(filterContext); if (Sess原创 2020-05-13 12:04:07 · 233 阅读 · 0 评论 -
ASP.NET MVC4中@model使用多个类型实例的方法
using System; using System.Web.Mvc; namespace Razor.Controllers { public class HomeController : Controller { Razor.Models.Product myProduct = new Models.Product { ProductID = 1, Name...翻译 2019-07-09 15:15:35 · 727 阅读 · 0 评论