摘要: Parallel这个类可以调度你的电脑中的所有CPU共同运算。我做了一个并行运算与普通运算的对比,并记录了时间并行运算方法:string str = ""; DataTable dt=new DataTable(); dt.Columns.Add("name", typeof(System.String)); for (int i = 0; i (rules, (dr) => { str += dr[0]; str += d... 阅读全文
posted @ 2013-06-26 10:14 王洪洪 阅读(721) 评论(0) 推荐(0)
摘要: c# 以post方式发送数据/// /// POST请求 /// /// 请求地址 /// 请求值 /// 编码格式 /// public string GetHttpPostResponse(string url, string val, Encoding encoding) { string strResult = string.Empty; try { HttpWebRequest myReq = (HttpWebRequest)HttpWebRequest.Create... 阅读全文
posted @ 2013-06-24 13:55 王洪洪 阅读(3934) 评论(0) 推荐(0)
摘要: 步骤一、LR中新建web services协议脚本。步骤二、点击“Manage Services-Import”,输入接口地址。(地址后加“?WSDL”)步骤三、点击“Import”。点击“ok”。步骤四、点击“Add Service Call-Input Arguments下面的项目Value”,输入请求串儿。步骤五、点击“ok”,自动生成脚本。 阅读全文
posted @ 2013-06-08 13:30 王洪洪 阅读(171) 评论(0) 推荐(0)
摘要: 步骤01 LR中新建web services协议脚本。 步骤02 点击“Manage Services-Import”,输入接口地址。(地址后加“?WSDL”) 步骤03 点击“Import”。点击“ok”。 步... 阅读全文
posted @ 2013-06-08 11:55 王洪洪 阅读(710) 评论(0) 推荐(0)
摘要: sql server 在修改表结构时提示不允许保存更改提示时,如何解决 更改表结构时出现如下提示框: 解决方法:工具->选项 阅读全文
posted @ 2013-06-08 09:41 王洪洪 阅读(148) 评论(0) 推荐(0)
摘要: 更改表结构时出现如下提示框:解决方法:工具->选项 阅读全文
posted @ 2013-06-08 09:40 王洪洪 阅读(292) 评论(0) 推荐(0)
摘要: /// /// JSON 的摘要说明。 /// public class JSON { private static readonly string Json_A = "3A3B1A16-F697-4a32-A0B0-2515BB4692F5"; ... 阅读全文
posted @ 2013-06-07 15:02 王洪洪 阅读(301) 评论(0) 推荐(0)
摘要: 异步执行sql语句 using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WinInterfaceCallBackVs08{ class Class1 ... 阅读全文
posted @ 2013-06-07 15:00 王洪洪 阅读(507) 评论(0) 推荐(0)
摘要: 第一、创建一个Windows服务 第二、在自动生成的Program类中写你要写的代码 using System;using System.Collections.Generic;using System.Linq;using System.ServiceProcess;using S... 阅读全文
posted @ 2013-06-07 15:00 王洪洪 阅读(104) 评论(0) 推荐(0)
摘要: sql中写事物和c#中执行事物 第一、sql中写事物 begin try begin transaction insert into shiwu (asd) values ('aasdasda'); commit transaction end try begin catch... 阅读全文
posted @ 2013-06-07 14:59 王洪洪 阅读(167) 评论(0) 推荐(0)