摘要:1/**//* 分页 2 参数说明: 3 prefix:前缀;chkAll:全选框;chkSingle:单选框ID 4 5 使用方法: 6 if(e.Item.ItemType == ListItemType.Header) 7 { 8 ((CheckBox)e.Item.Cells[1].FindControl("chkAll")...
阅读全文
随笔分类 - 功能函数
摘要:1/**//// 2 /// 按比例缩放图片 3 /// 4 /// 图片的路径 5 /// 图片的高度 6 /// 图片的宽度 7 /// 8 public static string GetImageSize(string imgUrl,int imgHeight,int imgWidth)...
阅读全文
摘要:1/**//// 2 /// 功能:在页面post时保存屏幕滚动状态; 3 /// 直接在Page_Load中加入Zeda.CNE.Common.RetainScrollPosition(); 4 /// 不能加在if(!Page.IsPostBack){}内; 5 /// 加入的两个隐藏域为__SCROLLPOS_TOP和__SCROLL...
阅读全文
摘要:1/**//// 2 /// 保存div与页面滚动条的位置 3 /// 9 /// DIV的ID数组10 public static void RetainScrollPosition(string[] divId)11 {12 13 System.Web.UI.Page page...
阅读全文
摘要:下载文件出现提示框或者直接显示在浏览器中 出现提示框 string strFile="F:\\a.doc";//路径根据实际情况而定if(!System.IO.File.Exists(strFile)) { Response.Write(""); return; } Response.Clear(); Response.ClearHeaders(); Re...
阅读全文