随笔分类 -  ASP.NET

ASP.NET
摘要://https全局配置 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, errors) => true; 阅读全文
posted @ 2019-12-18 18:52 b̶i̶n̶g̶.̶ 阅读(263) 评论(0) 推荐(0) 编辑
摘要:一、请求流程 当一个请求发往ASP.net MVC站点时的情景,IIS收到请求并将请求转到ASP.net,然后根据URL,或者更确切来说:被请求文件的扩展名.在IIS7 integrated模式下(默认模式),所有的请求都会匹配到ASP.net中,而在IIS6中,你可以通过通配符来达到和IIS7相同 阅读全文
posted @ 2017-05-10 17:51 b̶i̶n̶g̶.̶ 阅读(243) 评论(0) 推荐(0) 编辑
摘要:原文:http://www.cnblogs.com/wangiqngpei557/p/3379095.html 阅读全文
posted @ 2017-05-10 15:22 b̶i̶n̶g̶.̶ 阅读(107) 评论(0) 推荐(0) 编辑
摘要:原文:http://www.cnblogs.com/landeanfen/p/5337072.html 阅读全文
posted @ 2017-05-09 14:13 b̶i̶n̶g̶.̶ 阅读(147) 评论(0) 推荐(0) 编辑
摘要:1.业务要求:页面的数据只能被点击提交一次 2.发生原因: 由于重复点击或者网络重发,或者nginx重发等情况会导致数据被重复提交 3.解决办法: 集群环境:采用token加redis(redis单线程的,处理需要排队) 单JVM环境:采用token加redis或token加jvm内存 4.处理流程 阅读全文
posted @ 2017-04-06 14:50 b̶i̶n̶g̶.̶ 阅读(2520) 评论(0) 推荐(0) 编辑
摘要:Web.config 阅读全文
posted @ 2017-02-08 11:47 b̶i̶n̶g̶.̶ 阅读(356) 评论(0) 推荐(0) 编辑
摘要:1 public class TAjaxListLoginValidateAttribute : FilterAttribute, IAuthorizationFilter 2 { 3 public void OnAuthorization(AuthorizationContext filterContext) 4 { 5 ... 阅读全文
posted @ 2016-12-15 10:15 b̶i̶n̶g̶.̶ 阅读(416) 评论(0) 推荐(0) 编辑
摘要:阅读:http://www.cnblogs.com/fengzheng/p/3668283.html 阅读全文
posted @ 2016-10-28 15:00 b̶i̶n̶g̶.̶ 阅读(108) 评论(0) 推荐(0) 编辑
摘要:一、Application_End Application_End:网站关闭,或重启时,会触发该方法 二、Application_Start 第一个访问网站的用户会触发该方法. 通常会在该方法里定义一些系统变量,如聊天室的在线总人数统计,历史访问人数统计的初始化等等均可在这里定义 三、Session 阅读全文
posted @ 2016-08-31 13:35 b̶i̶n̶g̶.̶ 阅读(286) 评论(0) 推荐(0) 编辑
摘要:学习资料:http://www.cnblogs.com/OceanEyes/archive/2012/08/13/2635657.html 阅读全文
posted @ 2016-01-04 16:14 b̶i̶n̶g̶.̶ 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-06-19 21:09 b̶i̶n̶g̶.̶ 阅读(274) 评论(0) 推荐(0) 编辑
摘要:LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 阅读全文
posted @ 2015-04-09 18:55 b̶i̶n̶g̶.̶ 阅读(161) 评论(0) 推荐(0) 编辑
摘要:1. 删除 controller="XX"2. 确保你的工程根目录下的*.htm或*.html文件名在IIS默认文档中存在搞定 阅读全文
posted @ 2015-03-26 15:49 b̶i̶n̶g̶.̶ 阅读(474) 评论(0) 推荐(0) 编辑
摘要:1 #region 获取时间差string GetTime(BsonString getTime) 2 /// 3 /// 获取时间差 4 /// 5 /// 数据库时间 6 /// 时间差 7 ... 阅读全文
posted @ 2015-03-12 09:53 b̶i̶n̶g̶.̶ 阅读(1843) 评论(0) 推荐(0) 编辑
摘要:PV:PV 是Page Views的缩写,即页面浏览量,用户每一次对网站中的每个网页访问均被记录一次。注意,访客每刷新一次页面,pv就增加一次。UV:UV是Unique Visitor的缩写,即独立访客数。指访问某个站点的不同IP地址的人数。在同一天的00:00-24:00内,uv只记录第一次进入网... 阅读全文
posted @ 2015-02-13 15:31 b̶i̶n̶g̶.̶ 阅读(932) 评论(0) 推荐(0) 编辑
摘要:原文地址:http://www.cnblogs.com/TankXiao/archive/2012/02/06/2337728.html 阅读全文
posted @ 2015-02-12 09:44 b̶i̶n̶g̶.̶ 阅读(123) 评论(0) 推荐(0) 编辑
摘要://加载计算机上可用的字体 public string LoadFonts() { try { var fontCollection = new InstalledFontCollec... 阅读全文
posted @ 2015-01-14 10:18 b̶i̶n̶g̶.̶ 阅读(312) 评论(0) 推荐(0) 编辑
摘要:http://blogs.msdn.com/b/translation/p/webapptranslator.aspx 阅读全文
posted @ 2015-01-12 21:56 b̶i̶n̶g̶.̶ 阅读(157) 评论(0) 推荐(0) 编辑
摘要:概述ASP.NET MVC 5支持一种新的路由协议,称为路由特性。MVC5也支持以前定义路由的方式,你可以在一个项目中混合使用这两种方式来定义路由。案例 1.使用Visual Studio 2013 创建一个 4.5.1的 Web 项目,选择MVC框架2.配置RouteConfig.cs 附图: ... 阅读全文
posted @ 2014-12-18 17:55 b̶i̶n̶g̶.̶ 阅读(2294) 评论(2) 推荐(2) 编辑
摘要:新特性:vNext又称MVC 6.0,不再需要依赖System.Web,占用的内存大大减少(从前无论是多么简单的一个请求,System.Web本身就要占用31KB内存)。可以self-host模式运行,网站不再需要依赖IIS而运行,由此从此可以快速向客户演示开发进度,以及更好地支持真正跨平台(Lin... 阅读全文
posted @ 2014-12-01 09:55 b̶i̶n̶g̶.̶ 阅读(299) 评论(0) 推荐(0) 编辑