上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: HandleErrorAttribute源代码: 阅读全文
posted @ 2016-03-22 14:29 悠哉大斌 阅读(635) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-03-22 14:04 悠哉大斌 阅读(115) 评论(0) 推荐(0)
摘要: 在请求进入到MVC的处理mcvHandler之前,请求先到达HttpModule,因此可以利用HttpModule做全局的用户验证。 HttpModule MVC5之前的版本基于system.web.dll库,MvcApplication继承自HttpApplication,以Http管道的方式运行 阅读全文
posted @ 2016-03-19 21:43 悠哉大斌 阅读(813) 评论(0) 推荐(0)
摘要: IIS 向 ASP.NET 传递代表经过身份验证的用户或匿名用户帐户的令牌。该令牌在一个包含在 IPrincipal 对象中的 IIdentity 对象中维护,IPrincipal对象进而附加到当前 Web 请求线程。可以通过 HttpContext.User 属性访问 IPrincipal 和 I 阅读全文
posted @ 2016-03-19 18:35 悠哉大斌 阅读(252) 评论(0) 推荐(0)
摘要: IIS 支持以下身份验证模式: 匿名。如果不需要对客户端进行身份验证(或者使用自定义身份验证机制,如窗体身份验证),则可将 IIS 配置为允许匿名访问。在该事件中,IIS 创建一个 Windows 令牌来表示具有相同匿名(或客人)帐户的所有匿名用户。默认的匿名帐户是 IUSR_MACHINENAME 阅读全文
posted @ 2016-03-19 18:32 悠哉大斌 阅读(502) 评论(0) 推荐(0)
摘要: 注意区分认证和授权: The following are the differences in short: 另外在mvc中的认证过滤器总是优先与授权过滤器 Authentication filters are applied prior to any Authorization filters. 阅读全文
posted @ 2016-03-18 15:01 悠哉大斌 阅读(670) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/artech/archive/2012/04/10/how-mvc-works.html http://www.cnblogs.com/artech/archive/2012/06/07/data-annotations-model-validation 阅读全文
posted @ 2016-03-14 19:44 悠哉大斌 阅读(298) 评论(0) 推荐(0)
摘要: MVC中的aspx页面是System.Web.Mvc.ViewPage类的实例。 表示将视图呈现为 Web 窗体页所需的属性和方法。 继承层次结构 System.Object System.Web.UI.Control System.Web.UI.TemplateControl System.Web 阅读全文
posted @ 2016-03-12 15:01 悠哉大斌 阅读(3881) 评论(0) 推荐(0)
摘要: 1,系统自带的HandleErrorAttribute类继承自IExceptionFilter,是MVC的默认实现。 同时设置web.config <system.web> <customErrors mode="On"/> </system.web> //只需要简单的将改特性放到controlle 阅读全文
posted @ 2016-03-10 16:29 悠哉大斌 阅读(751) 评论(0) 推荐(0)
摘要: or track标签的属性主要有4个,如下表: kind 定义字幕内容类型,只能是这五种之一: subtitles, captions, descriptions, chapters, metadata. src 字幕文件的URL地址 srclang 字幕文件的语言类型,标识信息的作用,播放器不使用 阅读全文
posted @ 2016-03-08 19:52 悠哉大斌 阅读(5475) 评论(0) 推荐(0)
摘要: Last modified: January 13, 2012 Applies to: Office 2013 | Open XML This section provides conceptual topics for working with WordprocessingML documents 阅读全文
posted @ 2016-03-07 13:45 悠哉大斌 阅读(236) 评论(0) 推荐(0)
摘要: Snesh Prajapati, 8 Dec 2014 http://www.codeproject.com/Articles/717941/How-to-Choose-the-Best-Way-to-Pass-Multiple-Models Introduction In this article 阅读全文
posted @ 2016-03-04 12:26 悠哉大斌 阅读(247) 评论(0) 推荐(0)
摘要: Grant anonymous users permissions to containers and blobs By default, a container and any blobs within it may be accessed only by the owner of the sto 阅读全文
posted @ 2016-01-28 11:40 悠哉大斌 阅读(230) 评论(0) 推荐(0)
摘要: FROM:http://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-HTML-to-PDF-with-New-Plugin.htmlConverting HTML to PDF with C# PDF c... 阅读全文
posted @ 2016-01-12 13:22 悠哉大斌 阅读(690) 评论(0) 推荐(0)
摘要: fromhttps://dev.opera.com/articles/efficient-javascriptOccasionally, it is necessary to change the page address using a script. The typical way to do ... 阅读全文
posted @ 2015-12-17 13:40 悠哉大斌 阅读(124) 评论(0) 推荐(0)
摘要: Ints are easy. Strings are mostly easy. Dates? A nightmare. They always will be. There's different calendars, different formats. Did you know it's 200... 阅读全文
posted @ 2015-12-17 13:18 悠哉大斌 阅读(272) 评论(0) 推荐(0)
摘要: from:http://odetocode.com/blogs/scott/archive/2011/01/17/http-modules-versus-asp-net-mvc-action-filters.aspxMonday, January 17, 2011ASP.NET MVC hasact... 阅读全文
posted @ 2015-12-02 19:51 悠哉大斌 阅读(309) 评论(0) 推荐(0)
摘要: From:汤姆大叔的博客http://www.cnblogs.com/TomXu/p/4496435.html引用:http://www.mikesdotnetting.com/article/269/asp-net-5-middleware-or-where-has-my-httpmodule-g... 阅读全文
posted @ 2015-12-02 19:16 悠哉大斌 阅读(295) 评论(0) 推荐(0)
摘要: ByMike Wasson|May 20, 2012This article describes how ASP.NET Web API implements content negotiation.The HTTP specification (RFC 2616) defines content ... 阅读全文
posted @ 2015-11-30 16:10 悠哉大斌 阅读(358) 评论(0) 推荐(0)
摘要: ByMike Wasson|February 3, 2014This topic describes how ASP.NET Web API converts the return value from a controller action into an HTTP response messag... 阅读全文
posted @ 2015-11-30 15:49 悠哉大斌 阅读(205) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 下一页