我想将整个页面导出Excel
程序如下
private void Page_Load(object sender, System.EventArgs e)
        {
            Response.Clear();
            Response.Buffer=true;     
            Response.Charset="GB2312"; 
            Response.ContentEncoding=System.Text.Encoding.GetEncoding("GB2312"); 
            Response.AppendHeader("Content-Disposition","attachment;filename="+Server.UrlEncode ("typeExcel.xls"));     
          
        
        
            Response.ContentType = "application/vnd.ms-excel";