| ITEM | Name | Details | |
| 0023 | Online books | Asp.net | Download here |
| 0024 | Pdf materials | Asp.net MVC | Download here |
When I click to Action link “Download Here” it redirect to
Action for download as
string file = "~/download_dir/" + attachment;
string contentType = "application/octet-stream";
return File(file, contentType, Path.GetFileName(file));
(Download complete)
Works fine up to here
I want also to insert the data into new table when clicked on above
“Download here” action link
| Download by (userid) | Download date-time | Details | Download item |
| Arun1 | 201704170206 | Asp.net | 0023 |
| Prina | 201704170206 | Asp.net MVC | 0023 |
Ramesh PalanivelPosted Apr 17, 2017, 2:05 AM
------------------------------------------------------------------------ */
string contentType = "application/octet-stream";
return File(file, contentType, Path.GetFileName(file));
arun sahaniPosted Apr 17, 2017, 6:58 AM
Ramesh PalanivelPosted Apr 17, 2017, 6:32 AM
arun sahaniPosted Apr 17, 2017, 5:27 AM
Amit KumarPosted Apr 17, 2017, 2:15 AM
string file = "~/download_dir/" + attachment;
string contentType = "application/octet-stream";
return File(file, contentType, Path.GetFileName(file));