| 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 PalanivelRank #372 · 6.8K reputationPosted Apr 16, 2017, 10:05 PM EDT
------------------------------------------------------------------------ */
string contentType = "application/octet-stream";
return File(file, contentType, Path.GetFileName(file));
Amit KumarRank #459 · 5.4K reputationPosted Apr 16, 2017, 10:15 PM EDT
string file = "~/download_dir/" + attachment;
string contentType = "application/octet-stream";
return File(file, contentType, Path.GetFileName(file));
arun sahaniRank #4,173 · 360 reputationPosted Apr 17, 2017, 1:27 AM EDT
Ramesh PalanivelRank #372 · 6.8K reputationPosted Apr 17, 2017, 2:32 AM EDT
arun sahaniRank #4,173 · 360 reputationPosted Apr 17, 2017, 2:58 AM EDT