随笔分类 -  C#

摘要:private bool GetCondition(MerchantTravelXSJL tb, string key, string searchCity, string phoneNumber, DateTime? buyStartDate, DateTime? buyEndDate, int? 阅读全文
posted @ 2017-05-06 16:20 筱老邪 阅读(153) 评论(0) 推荐(0)
摘要:var canvas = $("canvas")[0]; var image = new Image(); image.src = canvas.toDataURL("image/png"); $.ajax({ url: '/TicketG/Base64StringToImage?',//ajax提 阅读全文
posted @ 2017-05-06 16:07 筱老邪 阅读(104) 评论(0) 推荐(0)
摘要:2010年發行ASP.NET MVC 2.0版,2011年發行ASP.NET MVC 3.0版,2012年發行ASP.NET MVC 4.0版 MVC3 需要.net framework 4.0 版本. 支持多视图引擎 在 ASP.NET MVC3 中,增加视图的对话框中允许你选择你希望的视图引擎, 阅读全文
posted @ 2017-02-17 16:01 筱老邪 阅读(454) 评论(0) 推荐(0)
摘要:private int UserAgent() { string u = Request.ServerVariables["HTTP_USER_AGENT"]; Regex b = new Regex(@"android.+mobile|avantgo|bada\/|blackberry|blaze 阅读全文
posted @ 2015-08-17 11:33 筱老邪 阅读(286) 评论(0) 推荐(0)
摘要:/// <summary> /// 单条json数据转换为实体 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="str">字符窜(格式为{a:'',b:''})</param> /// <returns></r 阅读全文
posted @ 2015-07-24 18:15 筱老邪 阅读(252) 评论(0) 推荐(0)
摘要:private static JsonSerializerSettings _jsonSettings; /// <summary> /// 将指定的对象序列化成 JSON 数据。 /// </summary> /// <param name="obj">要序列化的对象。</param> /// < 阅读全文
posted @ 2015-07-23 10:46 筱老邪 阅读(199) 评论(0) 推荐(0)
摘要:ASP.NET MVC4(Razor)从客户端中检测到有潜在危险的 Request.Form 值 “/”应用程序中的服务器错误。 从客户端(Content=" sdfdddd ...")中检测到有潜在危险的 Request.Form 值。 说明: ASP.NET 在请求中检测到包含潜在危险的数据,因 阅读全文
posted @ 2015-07-10 13:24 筱老邪 阅读(151) 评论(0) 推荐(0)
摘要:http://v3.bootcss.com/getting-started/ 阅读全文
posted @ 2014-09-13 00:27 筱老邪 阅读(322) 评论(0) 推荐(0)
摘要:解决方案: 阅读全文
posted @ 2013-11-08 09:17 筱老邪 阅读(90) 评论(0) 推荐(0)
摘要:解决方案: 阅读全文
posted @ 2013-11-08 09:14 筱老邪 阅读(110) 评论(0) 推荐(0)