网络世界,大有可为

献给自己的一片天空

导航

2007年7月26日

asp.net导出excel

摘要: 下面这种方法只能导出页面的Html至Excel: 1 public static void GridExportExcel(ref System.Web.UI.WebControls.GridView dg, string fileName) 2 { 3 System.Web.HttpContext.Current.Response.Clear(); 4 ... 阅读全文

posted @ 2007-07-26 21:29 Geerry 阅读(5524) 评论(5) 推荐(0) 编辑

用javascript取消gridview选中状态

摘要: 1 //取消编辑时,还原为原来的样式 2 var GridView2 = document.getElementById(""); 3 for(i = 1;i < GridView2.rows.length; i++) 4 { 5 if(i%2 ==0) 6 { 7 GridView2.rows[i].style.... 阅读全文

posted @ 2007-07-26 21:21 Geerry 阅读(238) 评论(0) 推荐(0) 编辑

两个ListBox的相互操作

摘要: 两个ListBox的相互操作有四个按:全选,单选,反单选,反全选.一.一种情况是这四个按钮用服务器控件:/**////<summary>///选中全部///</summary>///<paramname="sender"></param>///<paramname="e"></param>protectedvoidbtnSel... 阅读全文

posted @ 2007-07-26 21:12 Geerry 阅读(397) 评论(0) 推荐(0) 编辑