protected void Button1_Click(object sender, EventArgs e) { string attachment = "attachment; filename=Contacts.xls"; Response.ClearContent(); Go to the complete details ... Bookmark It