//this.export_data.InnerHtml = sb.ToString();
Response.Clear();
Response.Buffer = true; Response.Charset = "utf-8";
Response.AppendHeader("Content-Disposition", "attachment;filename=RMA" + sdate + "-" + edate + ".xls");
Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8");
//设置输出流为简体中文
Response.ContentType = "application/ms-excel";
//设置输出文件类型为excel文件。
this.EnableViewState = false;
Response.Write(sb.ToString());
Response.End();