摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta ht... 阅读全文
摘要:
方法很简单,只是将DataGrid的内容输出到HtmlTextWriter流,再将流作为附件让用户下载或者用Excel打开.此方法虽然简单,但能实现功能.private void button_OutExcel_Click(object sender, System.EventArgs e){Response.Clear(); Response.Buffer= true; Response... 阅读全文