摘要: protected void btnExcel_Click(object sender, EventArgs e) { if (GridView1.Rows.Count > 0) { ExportGridViewForUTF8(GridView1, DateTime.Now.ToShortDateString() + ".xls");//调用导出方法 } } /// /// 重载,否则出现“类型“GridView”的控件“GridView1”必须放在具有 runat=server 的窗体标..... 阅读全文
posted @ 2014-03-04 14:47 yellowshorts 阅读(228) 评论(0) 推荐(0) 编辑
摘要: declare @delStr nvarchar(500)set @delStr=''----这边修改被注入的jsset nocount ondeclare @tableName nvarchar(100),@columnName nvarchar(100),@tbID int,@iRow int,@iResult intdeclare @sql nvarchar(500)set @iResult=0declare cur cursor forselect name,id from sysobjects where xtype='U'open curfetch 阅读全文
posted @ 2014-03-04 14:45 yellowshorts 阅读(266) 评论(0) 推荐(0) 编辑