摘要: ThreadPool.QueueUserWorkItem(_ =>{HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.baidu/tag/模特?page=" + pageNum);request.Creden... 阅读全文
posted @ 2015-12-05 20:33 hbsfgl 阅读(206) 评论(1) 推荐(0)
摘要: using (WebClient myWebClient = new WebClient()) { try { myWebClient.Downlo... 阅读全文
posted @ 2015-12-05 20:16 hbsfgl 阅读(1192) 评论(0) 推荐(0)
摘要: namespace GetImages{ using System; using System.Text.RegularExpressions; public class Example { public void Main() { ... 阅读全文
posted @ 2015-12-05 20:15 hbsfgl 阅读(1401) 评论(0) 推荐(1)
摘要: public static class IEnumerableExtensions { public static DataTable AsDataTable(this IEnumerable data) { PropertyDescriptorCol... 阅读全文
posted @ 2015-12-03 10:47 hbsfgl 阅读(183) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Text;using System.Linq;namespace TicketPackageSyncTool{ class Program { /// ... 阅读全文
posted @ 2015-11-27 21:42 hbsfgl 阅读(292) 评论(0) 推荐(0)
摘要: protected bool Vertify(string JsonData, BaseResponseModel resultEntity) { if (ValidateRequest(JsonData, resultEntity)) //... 阅读全文
posted @ 2015-11-26 10:40 hbsfgl 阅读(547) 评论(0) 推荐(0)
摘要: web api model验证跌重要性不必说,尽早的过滤掉非法的请求首先自定义model 验证类DescompareValidationAt public class DescompareValidationAt : ValidationAttribute { public... 阅读全文
posted @ 2015-11-26 10:32 hbsfgl 阅读(361) 评论(0) 推荐(0)
摘要: 他原文的地址:http://www.cnblogs.com/wohexiaocai/p/3529641.html下载资源还有csdn积分,太不厚道 ,鄙视,我帮他公布源码//---------------------------------------------------------------... 阅读全文
posted @ 2015-11-13 15:48 hbsfgl 阅读(366) 评论(0) 推荐(0)
摘要: /******************************************************************* * 版权所有: * 类 名 称:ExcelHelper * 作 者:zk * 电子邮箱: * 创建日期:2012/2/25 10:17:21 * 修改... 阅读全文
posted @ 2015-11-11 18:15 hbsfgl 阅读(800) 评论(0) 推荐(0)
摘要: 第一篇 从CUD开始,如何使用LINQ to SQL插入、修改、删除数据准备工作,现在数据库中建好测试表Student,这个表只有三个字段ID,Name,Hometown,其中ID为int类型的自增长字段,Name和Howmtown是nvarchar类型1. 打开VS2010新建控制台应用程序,然后... 阅读全文
posted @ 2015-11-04 16:57 hbsfgl 阅读(193) 评论(0) 推荐(0)