摘要:
在Http协议中,规定了同个Http请求的并发连接数最大为2. 这个数值,可谓是太小了。 而目前的浏览器,已基本不再遵循这个限制,但是Dot Net平台上的 System.Net 还是默认遵循了这个标准的。 从而造成了,在使用HttpWebRequset 或者 WebClient 利用多线程的方式, 阅读全文
随笔档案-2016年09月
c# winform捕获全局异常,并记录日志
2016-09-23 13:55 by newbirth, 9227 阅读, 收藏,
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.IO; namespace OrderSplit { static class Program { /// /// 应用程序的主入... 阅读全文
c# IE 清除缓存
2016-09-20 18:02 by newbirth, 387 阅读, 收藏,
摘要:
Response.Buffer = true; Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1); Response.Expires = 0; Response.CacheControl = "no-cache"; Response.Cache.Se... 阅读全文
c# 验证码图片生成类
2016-09-14 09:53 by newbirth, 2077 阅读, 收藏,
摘要:
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Text; using System... 阅读全文
c# 字符串验证(邮箱、电话、数字、ip、身份证等)
2016-09-14 09:52 by newbirth, 686 阅读, 收藏,
摘要:
using System; using System.Text.RegularExpressions; namespace HuaTong.General.Utility { /// /// 字符串验证 /// public static class StringValidate { private static Regex RegN... 阅读全文
c# 系统校时工具类
2016-09-14 09:52 by newbirth, 633 阅读, 收藏,
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HuaTong.General.Utility { /// /// 系统校时工具类 /// public static class SysDateTime { ... 阅读全文
c# 字符串工具类
2016-09-14 09:51 by newbirth, 1511 阅读, 收藏,
摘要:
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Globalization; using System.Linq; using System.Text; using System.Text.RegularExpressions; using Sys... 阅读全文
c# 自定义排序类(冒泡、选择、插入、希尔、快速、归并、堆排序等)
2016-09-14 09:49 by newbirth, 247 阅读, 收藏,
摘要:
using System; using System.Text; namespace HuaTong.General.Utility { /// /// 自定义排序类 /// public class Sorter { /// /// 交换元素位置 /// public static... 阅读全文
c# 获取随机数字/字符/时间
2016-09-14 09:48 by newbirth, 1568 阅读, 收藏,
摘要:
using System; using System.Text; namespace HuaTong.General.Utility { /// /// 随机字符/数字 /// public static class Randoms { static Random rd = new Random(); static D... 阅读全文
c# 汉字转拼音
2016-09-14 09:47 by newbirth, 279 阅读, 收藏,
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HuaTong.General.Utility { /// /// 汉字转拼音 /// public class PinYinConverter { ... 阅读全文
c# 获取机器硬件信息 (硬盘,cpu,内存等)
2016-09-14 09:46 by newbirth, 9988 阅读, 收藏,
摘要:
using System; using System.Collections.Generic; using System.Globalization; using System.Management; using System.IO; using System.Net; using System.Net.NetworkInformation; using System.Net.Sockets; ... 阅读全文
c# 实体处理工具类
2016-09-14 09:46 by newbirth, 807 阅读, 收藏,
摘要:
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Linq; using System.Reflection; using System.Text; using System.T... 阅读全文
c# 文件日志处理 需要log4net配置
2016-09-14 09:44 by newbirth, 743 阅读, 收藏,
摘要:
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace HuaTong.General.Utility { /// /// 文件日志处理 需要log4net配置 /// p... 阅读全文
c# 处理js序列化时 datetime返回UTC格式的问题
2016-09-14 09:43 by newbirth, 484 阅读, 收藏,
摘要:
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Converters; using System.Collections; n... 阅读全文
c# JScriptProvider包装
2016-09-14 09:41 by newbirth, 485 阅读, 收藏,
摘要:
using System; using System.CodeDom.Compiler; using System.Reflection; using System.Web.UI; using Microsoft.JScript; namespace HuaTong.General.Utility { /// /// JScriptProvider包装 /// ... 阅读全文
c# 模拟POST上传文件到服务器
2016-09-14 09:40 by newbirth, 10475 阅读, 收藏,
摘要:
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Net; namespace HuaTong.General.Utility { /// //... 阅读全文
c# http操作类
2016-09-14 09:39 by newbirth, 3131 阅读, 收藏,
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Net; using System.IO... 阅读全文
c# html内容处理类
2016-09-14 09:37 by newbirth, 3145 阅读, 收藏,
摘要:
using System; using System.Text; using System.Text.RegularExpressions; using System.Net; using System.IO; using System.IO.Compression; namespace HuaTong.General.Utility { /// /// html内容处理 ... 阅读全文
c# 加密工具类
2016-09-14 09:35 by newbirth, 966 阅读, 收藏,
摘要:
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Web.Secur... 阅读全文
c# 发送邮件
2016-09-14 09:34 by newbirth, 183 阅读, 收藏,
摘要:
using System; using System.Web; namespace HuaTong.General.Utility { /// /// 邮件发送 /// public class EmailHelper { string MailAddress = ""; string MailName = ""; ... 阅读全文
c# 文件/文件夹操作
2016-09-14 09:33 by newbirth, 267 阅读, 收藏,
摘要:
using System; using System.IO; namespace HuaTong.General.Utility { /// /// 文件夹/文件操作 /// public static class DirFileHelper { /// /// 获取所有子目录列表,包含嵌套的子目录 ... 阅读全文
c# DataTable 数据集处理DataTableHandler
2016-09-14 09:32 by newbirth, 1003 阅读, 收藏,
摘要:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Linq; using System.Reflection; using System.Text; using System.Collections; using System.I... 阅读全文
c# DataTable 导出csv文件
2016-09-14 09:30 by newbirth, 3440 阅读, 收藏,
摘要:
using System;using System.Data;using System.Configuration;using System.Collections.Generic;using System.Web;using System.Web.Security;using System.Web 阅读全文
C# 缓存操作类
2016-09-14 09:29 by newbirth, 4832 阅读, 收藏,
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Caching; namespace HuaTong.General.Utility { /// /// 缓存操作,默认缓存1分钟 ... 阅读全文
常用字符串加密解密方法
2016-09-13 11:24 by newbirth, 8022 阅读, 收藏,
摘要:
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Web.Secur... 阅读全文
使用存储过程生成数据库文档
2016-09-12 10:42 by newbirth, 399 阅读, 收藏,
摘要:
USE [MeiDongPay] GO /****** Object: StoredProcedure [dbo].[RenderTableDocument] Script Date: 09/12/2016 10:39:52 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ======================... 阅读全文
浙公网安备 33010602011771号