2008年3月23日

ASP.NET加密算法(MD5/DES)

摘要: 本文讲 ASP.NET的MD5和DES加密和解密算法 #region MD5算法 public string md5(string str, int code) { if (code == 16) //16位MD5加密(取32位加密的9~25字符) { return System.W... 阅读全文

posted @ 2008-03-23 16:28 黄兆张's Blog 阅读(2231) 评论(0) 推荐(0) 编辑

ASP.NET获取汉字拼音的首字母

摘要: #region GetChineseSpell获取汉字拼音的第一个字母 //获取汉字拼音的第一个字母 static public string GetChineseSpell(string strText) { int len = strText.Length; string myStr = ""; ... 阅读全文

posted @ 2008-03-23 16:25 黄兆张's Blog 阅读(1399) 评论(0) 推荐(0) 编辑

ASP.NET(C#)上传图片(二进制)

摘要: 此方法适合ASP.NET(C#)+Oracle Oracle 表中字段类型为Blob #region 上传文件(二进制) // static public Byte[] FileToBinary(FileUpload hifile) { try { if (hifile.... 阅读全文

posted @ 2008-03-23 16:19 黄兆张's Blog 阅读(2929) 评论(1) 推荐(0) 编辑

导航