03 2013 档案
摘要:public delegate bool EqualsComparer<T>(T x, T y); /// <summary> /// 过滤重复数据 /// </summary> public class Comparint<T> : IEqualityComparer<T> { private EqualsComparer<T> ec; public Comparint() { } public Comparint(EqualsComparer<T> e)...
阅读全文
摘要:string ReplaceChat(string EE) { string[] dd ={"◎", "■", "●", "№", "↑", "→", "↓" + "!", "@", "#", "$", "%", "^", "&", "*", "(", ")&q
阅读全文
摘要:/// 上传文件 /// </summary> /// <param name="path">文件保存位置</param> /// <param name="oFile">文件</param> /// <returns></returns> public string UpLoadFile( System.Web.UI.WebControls.FileUpload fu) { bool Isftp = true; if (Isftp) { ...
阅读全文
摘要:function clearNoNum(obj) { //先把非数字的都替换掉,除了数字和. obj.value = obj.value.replace(/[^\d.]/g, ""); //必须保证第一个为数字而不是. ...
阅读全文
摘要:/// <summary> /// 分页获取数据集 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="_pagerIndex"></param> /// <param name="_pagerSize"></param> /// <param name="WhereString"></param> /// &l
阅读全文
摘要:Tabletable=new Table();Response.ClearContent();Response.Buffer=true;Response.Charset="GB2312";Response.AppendHeader("Content-Disposition","attachment;filename=FileName1.xls");Response.ContentEncoding=System.Text.Encoding.UTF8;Response.ContentType="application/excel
阅读全文