摘要: private void KillExcelProceed() { int ProceedingCount = 0; System.Diagnostics.Process[] ExcelProcesses; ExcelProcesses = System.Diagnostics.Process.GetProcessesByName("EXCEL"); foreach(Sy... 阅读全文
posted @ 2005-11-02 11:01 Benny Ng 阅读(407) 评论(0) 推荐(0) 编辑
摘要: FileStream fileStream=new FileStream(pFileName,FileMode.Open) long fileSize = fileStream.Length; Context.Response.ContentType="application/msword"; Context.Response.AddHeader("Content-Length",fileSize... 阅读全文
posted @ 2005-11-02 11:00 Benny Ng 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 防止页面被多次提交 作者:bestcomy 来自:博客园 此处提供的代码用来实现当asp.net页面中的某个Button被点击后disable掉该页面中所有的Button,从而防止提交延时导致的多次提交。基于之前的onceclickbutton脚本. public class PreventMultiClick : System.Web.UI.Page { prote... 阅读全文
posted @ 2005-11-02 00:04 Benny Ng 阅读(234) 评论(0) 推荐(0) 编辑