摘要:
把dataset 输出到 excelpublic void CreatExcel(System.Web.UI.WebControls.GridView ctl,DataSet ds,string filename) { ctl.DataSource = ds.Tables[0]; ctl.DataBind(); HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename="+filename); ... 阅读全文