- 博客(6)
- 资源 (2)
- 收藏
- 关注
原创 MD5
txt 要加密的字符;output加密后的字符 public string HashMD5(string txt) { byte[] result = ((HashAlgorithm)System.Security.Cryptography.CryptoConfig.CreateFromName("MD5")).ComputeHash(System.Text.
2012-10-24 15:36:43 295
原创 数据导出到execl
if (GridView1.Rows.Count == 0) { Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('无数据导出!');"); } else { StringBuilder s
2012-10-24 15:30:15 355
原创 excel导到gridview
果大家在google搜C#读取excel数据,一定会搜索出一下的代码: public DataTable ExcelToDS(string Path) { string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Path + ";" +
2012-10-24 15:29:10 367
原创 log4 net
1 首先下载log4net 程序集 并把它引用到项目log4net.DLL 2 新建loger类 using System; using System.Collections.Generic; using System.Text; namespace djgw.DAL { class mylog { public static log4ne
2012-10-17 11:10:04 421
转载 sql 索引
-----创建索引 create clustered index riqi_person on person(date) ------在person表的date字段上面创建名为riqi_person的【聚集索引】 create nonclustered index riqi_person on person(date) ------在person表的date字段上面创建名为riqi
2012-10-11 12:35:00 572
转载 DBA database administrator
DBA(数据库管理员) DBA是数据库管理员认证,英文是Database Administrator。 DBA的一些职责: 安装和升级数据库服务器(如Oracle、Microsoft SQL server),以及应用程序工具。 数据库设计系统存储方案,并制定未来的存储需求计划。 一旦开发人员设计了一个应用,就需要DBA来创建数据库存储结构(tablespaces)。 一旦开发人
2012-10-11 10:33:08 517
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人