随笔分类 -  C#技术

C#技术
摘要:调用方式: 阅读全文
posted @ 2016-11-15 17:41 大空白纸 阅读(2842) 评论(0) 推荐(0) 编辑
摘要:The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. 1.在用SQL SERVER 2005访问.xlsx文件(office2007&2010文件格式)时,必须用provider 'Micros 阅读全文
posted @ 2016-09-02 11:47 大空白纸 阅读(1226) 评论(0) 推荐(0) 编辑
摘要:1.DateTime 转为Unix的long的时间戳 long orderTime = order.AddTime.ToUnixTimeStamp("Milliseconds"); long payTime = order.StartTime.Value.ToUnixTimeStamp("Milli 阅读全文
posted @ 2016-05-26 16:49 大空白纸 阅读(705) 评论(0) 推荐(0) 编辑
摘要:Http async / await 方式请求实例: 使用Task.Run(()=>{})方式执行 阅读全文
posted @ 2016-05-03 17:32 大空白纸 阅读(386) 评论(0) 推荐(0) 编辑
摘要:using Lemon.Common; using Lemon.WeChat.Model; using Lemon.WeChat.Services; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Senparc.Weixin.MP; using System; using System.Collections.Generic; ... 阅读全文
posted @ 2016-04-22 13:34 大空白纸 阅读(2815) 评论(0) 推荐(0) 编辑
摘要:在网站开发中,如果有发布类似新闻的图文混排需求时,CKEditor不失为一个很好的选择,下载地址如下:http://ckeditor.com/download它的前身是FCKEditor,随着它的更新,上传图片的功能被分离出去了,现在如果需要实现上传图片,要么自己写代码,还有一种方法是使用CKFin... 阅读全文
posted @ 2016-01-27 11:26 大空白纸 阅读(2202) 评论(3) 推荐(0) 编辑
摘要:1、接口using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace PlugDemo{ public interface IPlugToText { ... 阅读全文
posted @ 2015-02-04 14:57 大空白纸 阅读(364) 评论(0) 推荐(0) 编辑
摘要:服务端:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Te... 阅读全文
posted @ 2015-02-03 10:24 大空白纸 阅读(348) 评论(0) 推荐(0) 编辑
摘要:1、HTTP上传文件及传递参数 #region 6.0 上传多个文件和参数 /// /// HttpUploadFile /// /// /// /// /// /// public static string HttpUpl... 阅读全文
posted @ 2015-02-02 16:02 大空白纸 阅读(1855) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 时间戳demo{ /* * Unix时间戳(Unix timestamp),或称Unix时间(Unix... 阅读全文
posted @ 2015-01-28 20:45 大空白纸 阅读(17498) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2015-01-24 12:14 大空白纸 阅读(4387) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections;using System.Data;using System.Linq;using System.Web;using System.Web.Services;using System.Web.Services.Protoco... 阅读全文
posted @ 2015-01-17 16:17 大空白纸 阅读(320) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;usin... 阅读全文
posted @ 2015-01-13 08:59 大空白纸 阅读(2329) 评论(0) 推荐(0) 编辑
摘要://获excel中多个sheet中的数据 /// /// 读取导入Excel文件内容 /// /// 文件路径(上传后) /// Excel中的列 名 /// 是否读取多个Sheet /// (out)消息提示... 阅读全文
posted @ 2015-01-06 16:53 大空白纸 阅读(726) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using ... 阅读全文
posted @ 2014-12-23 20:26 大空白纸 阅读(395) 评论(0) 推荐(0) 编辑
摘要:public class HttpTools { public static string GetRequest(string url) { HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(url); request.Me 阅读全文
posted @ 2014-12-04 21:19 大空白纸 阅读(4696) 评论(0) 推荐(0) 编辑
摘要://服务器端//服务器端using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using S... 阅读全文
posted @ 2014-11-24 21:54 大空白纸 阅读(199) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;using System.Threading;using System.Globali... 阅读全文
posted @ 2014-11-20 16:56 大空白纸 阅读(421) 评论(0) 推荐(0) 编辑
摘要:#region 读取导入Excel数据 /// /// /// /// /// /// public DataSet ReadDataFromExcel(string filename, string fields) { D... 阅读全文
posted @ 2014-11-18 16:35 大空白纸 阅读(286) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示