01 2012 档案

摘要:#region MD5算法public string md5(string str, int code){if (code == 32) //32位加密{return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str, “MD5″).ToLower();}else //16位MD5加密(取32位加密的9~25字符){return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str, 阅读全文
posted @ 2012-01-10 21:06 ajunfly 阅读(1968) 评论(0) 推荐(0)
摘要:/// <summary> /// 赋值 表名,控件名,要查询的唯一数据 /// </summary> protected void SetEvaluate(string TableName, string UpName, string Id) { ContentPlaceHolder cph = (ContentPlaceHolder)Page.Master.FindControl("cph_context"); UpdatePanel up = (UpdatePanel)cph.FindControl(UpName); DataTable dt 阅读全文
posted @ 2012-01-09 19:14 ajunfly 阅读(278) 评论(0) 推荐(0)
摘要:<script language="javascript" type="text/javascript"> function UserPrint() { bdhtml=window.document.body.innerHtml; var headstr = "<html><head></head><body>"; var footstr = "</body>"; var bodystr = document.all.item("pr 阅读全文
posted @ 2012-01-08 19:37 ajunfly 阅读(12141) 评论(1) 推荐(0)