摘要: /// /// 无损压缩图片根据宽和高 /// /// 原图片 /// 压缩后保存位置 /// 高度 /// /// 压缩质量 1-100 /// public s... 阅读全文
posted @ 2015-09-29 14:05 595824023 阅读(182) 评论(0) 推荐(0) 编辑
摘要: .NET 3.5以后,WCF中提供了WebGet的方式,允许通过url的形式进行Web 服务的访问。在以前的代码中,写过多次类似的例子,但总是忘记如何配置,现在将设置步骤记录如下:endpoint通讯协议设置成webHttpBindingendpoint的行为设置成在接口上加入WebGet的Attr... 阅读全文
posted @ 2015-09-28 16:53 595824023 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 无废话WCF入门教程一[什么是WCF]wcf技术交流,同学习共进步,欢迎加群:群号:58967616一、概述 Windows Communication Foundation(WCF)是由微软发展的一组数据通信的应用程序开发接口,可以翻译为Windows通讯接口,它是.NET框架的一部分。由 .N... 阅读全文
posted @ 2015-09-28 14:06 595824023 阅读(151) 评论(0) 推荐(0) 编辑
摘要: GetMapper().SessionStore = new HybridWebThreadSessionStore(GetMapper().Id); 阅读全文
posted @ 2015-09-18 17:01 595824023 阅读(335) 评论(0) 推荐(0) 编辑
摘要: SELECT TOP 10 TEXT AS 'SQL Statement' ,last_execution_time AS 'Last Execution Time' ,(total_logical_reads + total_physical_reads + total_logical... 阅读全文
posted @ 2015-09-16 16:29 595824023 阅读(298) 评论(0) 推荐(0) 编辑
摘要: List> PostData = new List>(); PostData.Add(new KeyValuePair("event_id", "loan_web")); public static FraudApiResponse TonDun(List> Params, ... 阅读全文
posted @ 2015-08-20 09:16 595824023 阅读(478) 评论(0) 推荐(0) 编辑
摘要: public static string PostDataGetHtml(string uri, string postData) { try { byte[] data = Encoding.UTF8.Get... 阅读全文
posted @ 2015-08-17 15:13 595824023 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 客户端ip:Request.ServerVariables.Get("Remote_Addr").ToString();客户端主机名:Request.ServerVariables.Get("Remote_Host").ToString();客户端浏览器IE:Request.Browser.Brow... 阅读全文
posted @ 2015-08-11 16:20 595824023 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 启动SQL Server 2008Management Studio工具菜单----选项----Designers(设计器)----阻止保存要求重新创建表的更改 取消勾选即可。 阅读全文
posted @ 2015-08-08 16:14 595824023 阅读(116) 评论(0) 推荐(0) 编辑
摘要: /// /// 判断客户端是否是手机或者PC /// /// public static bool IsMobileDevice() { HttpContext context = HttpConte... 阅读全文
posted @ 2015-07-31 17:54 595824023 阅读(547) 评论(0) 推荐(0) 编辑