Use the following code to import the file from route directory:
Response.ContentType = "application/ms-excel";
Tag: addheader, Asp.net, download, excel, export, file, import, route, transmitfile, xls
Response.ContentType = "application/ms-excel";
Response.AddHeader("content-disposition", "inline; filename=sample.xls");
Response.TransmitFile("sample.xls");
Response.Flush();
Tag: addheader, Asp.net, download, excel, export, file, import, route, transmitfile, xls
No comments:
Post a Comment