I have a code for exporting excel on button click:
protected void btn_Excel_Click(object sender, EventArgs e) { try { empData1.ShowHe