ASP.Net export to excel + File Download dialog action.
- by Muhammad Umar Siddique
i m trying to export data from asp.net form to excel using following lines of code
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("content-disposition", "attachment; filename=Report.xls");
Everything seems to be working fine.
Now what I need it to take some action if user clicks the "Cancel" button on File Download dialog. How i can do this ?
thanks..