2006年10月26日

.net 2.0 使用MD5加密字符

摘要: using System.Security.Cryptography; /// /// 加密字符串,返回密文 /// /// /// public static string EncryptString(string password) { string strReturn... 阅读全文

posted @ 2006-10-26 22:53 bike 阅读(443) 评论(0) 推荐(0) 编辑

2006年10月25日

SQL Server中使用convert转化长日期为短日期

摘要: 一般存入数据库中的时间格式为 yyyy-mm-dd hh:mm:ss 如果只要取yyyy-mm-dd格式时间, 就可以用 convert(nvarchar(10),field,120) 120 是格式代码, nvarchar(10) 是指取出前10位字符. 示例: SELECT CONVERT(nvarchar(10), publish_time, 120) FROM table_name 阅读全文

posted @ 2006-10-25 14:47 bike 阅读(3071) 评论(0) 推荐(0) 编辑

2006年9月30日

解决文件下载弹出窗体被拦截

摘要: 原来我们项目在开发时中(文件是存储在数据库中)下载文件采用写入http头的形式。如下Response.Clear(); Response.Buffer = false; Response.AppendHeader("Content-Disposition","attachment;filename="+HttpUtility.UrlEncode(fileWJNR.Rows[0]["WJM"].ToString(),System.Text.Encoding.UTF8)); Response.BinaryWrite(字节流); Response.End(); 但在项目部署后,用户的IE6.0浏览时,会被拦截,并关闭退出。 阅读全文

posted @ 2006-09-30 23:37 bike 阅读(681) 评论(0) 推荐(0) 编辑

2006年7月26日

当flash遮住层

摘要: 某些下拉菜单的效果用层实现,但当下拉层又遇上flash时就会被flash遮住需要设置flash为透明背景。flash的参数:或者 阅读全文

posted @ 2006-07-26 13:49 bike 阅读(659) 评论(2) 推荐(0) 编辑

导航