/// /// (eraghi) /// Custom CheckedListBox with binding facilities (Value property) /// from A Custom CheckedListBox with Datasource http:...
分类:
其他好文 时间:
2015-05-09 21:44:59
阅读次数:
126
类模板制作:路径:C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache\CSharp\Code\2052\Class.zip操作:打开Class.cs文件,编辑内容如下:// // 创建时间: ...
分类:
其他好文 时间:
2015-05-01 22:33:07
阅读次数:
200
客户端取消:[html]view plaincopy服务器具端取消:服务器端:[csharp]view plaincopyResponse.Buffer=true;Response.ExpiresAbsolute=DateTime.Now.AddDays(-1);Response.Cache.Set...
分类:
Web程序 时间:
2015-04-30 17:35:09
阅读次数:
212
说明:使用用户控件分页,完成后,使用时非常简单,数据绑定,调用自己写的一个事件就OK了
前期准备工作:
(1)添加一个用户控件 命名PageCtrl
(2)打开代码:
[csharp] view
plaincopyprint?
//引用
using DevExpress.XtraEditors;
//窗体继承 ...
分类:
其他好文 时间:
2015-04-29 15:09:49
阅读次数:
156
[csharp]view plaincopy首先:添加配置[csharp]view plaincopy[csharp]view plaincopy/***************************************作用:SQLLiteServer操作实现*****************...
分类:
数据库 时间:
2015-04-28 13:30:30
阅读次数:
219
C#的提交表单方式主要有两种WebClient与HttpWebRequest,这里先介绍一种WebClient,转送门:http://msdn.microsoft.com/zh-cn/library/system.net.webclient(v=VS.80).aspx[csharp]view pla...
转:http://www.tracefact.net/CSharp-Programming/Delegates-and-Events-in-CSharp.aspx委托和事件的区别,为什么有了委托还需要事件呢?引言委托 和 事件在 .Net Framework中的应用非常广泛,然而,较好地理解委托和事...
转载:http://blog.csdn.net/fangxing80/article/details/26940845原始的 WebService 如下:[csharp]view plaincopyusingSystem;usingSystem.Collections.Generic;usingSy...
分类:
Web程序 时间:
2015-04-25 00:13:24
阅读次数:
116
C# 5.0中引入了async 和 await。这两个关键字可以让你更方便的写出异步代码。看个例子:[csharp]view plaincopypublicclassMyClass{publicMyClass(){DisplayValue();//这里不会阻塞System.Diagnostics.D...
分类:
其他好文 时间:
2015-04-23 01:49:21
阅读次数:
235
另外MySql官方出了一个在csharp里面连接MySql的Connector,可以试试 http://dev.mysql.com/downloads/#connector-net报错:Unable to connect to any of the specified MySQL hosts.今天做...
分类:
数据库 时间:
2015-04-22 20:23:55
阅读次数:
338