随笔分类 -  C#

摘要://获取本机的公网IP public static string GetIP() { string tempip = ""; WebRequest request = WebRequest.Create("http://ip.qq.com/"); request.Timeout = 10000; WebResponse response = request.GetResponse(); Stream resStream = response.GetRespo... 阅读全文
posted @ 2012-12-05 15:16 cryking 阅读(3654) 评论(0) 推荐(0)
摘要:核心处理方法如下:int num = 0, pos = 0, startPos = 0; foreach (char c in tmpIn) { if (',' == c) num++; if ((num + 1) % 800 == 0 && c == ',') { ctrlIn = ctrlIn + inCode + " in ('" + tmpIn.Substring(start... 阅读全文
posted @ 2012-11-22 11:26 cryking 阅读(564) 评论(0) 推荐(0)