2011年6月16日
摘要: WriteDSToCsv 传入dataset生成csv文件 #region WriteDSToCsv 传入dataset生成csv文件 public void WriteDSToCsv(DataSet ds) { string strFile=""; string path=""; DataTable dt=ds.Tables[0]; //文件信息设置 strFile=strFile+"LogBackUp"; strFile=strFile+DateTime.Now.ToString("yyyyMMddhhmmss" 阅读全文
posted @ 2011-06-16 13:30 AlvinXiao 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 导出EXCLEResponse.Clear();Response.ClearHeaders();Response.BufferOutput = false;Response.ContentType = "application/ms-excel";Response.AppendHeader("Content-disposition", "attachment;filename=" + HttpUtility.UrlEncode("AppointmentOrders_" + ddl_MCList.SelectedIt 阅读全文
posted @ 2011-06-16 13:22 AlvinXiao 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 做笔记,以防自己忘记~~ JS获取事件event,不同浏览器有不同的做法。例如IE下,在js函数中,通过window.event就可以获取,不必在函数中添加什么参数。 也可以用Prototype或者JQuery等,它们有他们对事件的包装。还是使用JS库比较好,不然就有下边的麻烦。Firefox:要传递参数<head><script> function click1(event,str1){ alert(event+str1); }</script></head><body><input type="button&quo 阅读全文
posted @ 2011-06-16 11:27 AlvinXiao 阅读(1068) 评论(1) 推荐(0) 编辑