摘要:
System.Web.UI.WebControls.DataGriddatagrid=newSystem.Web.UI.WebControls.DataGrid();datagrid.ID="excelGrid1";datagrid.DataSource=data;datagrid.DataBind();stringfilename="table.xls";filename=System.Web.HttpUtility.UrlEncode(System.Text.Encoding.UTF8.GetBytes(filename));//导出System.W 阅读全文