调用(如:button1) protected void button1_Click(object sender, EventArgs e) { ToExcel(this.dd, "excel"); }