I want to add download button in webgrid which individually downloads the file on that row in MVC.
Thanks in advance..
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Saineshwar BageriRank #115 · 19.6K reputationPosted Jan 15, 2017, 8:06 PM EST
rowStyle: "gridrow",
alternatingRowStyle: "gridalt",
columns: grid.Columns(
grid.Column("ApplicationNo", header: "Application No"),
grid.Column(columnName: "DownLoad Receipt", format: (item) => Html.ActionLink("DownLoad", "ActionMethod Name", "Controller Name",
new { ApplicationID= item.ApplicationNo }, null))
))
Any Parameter to pass (String Application)
public ActionResult DownloadRecipt(string ApplicationID)
{
return File(DocDownload.Document, DocDownload.ContentType, DocDownload.FileName);
}
S PRank #5,790 · 286 reputationPosted Jan 16, 2017, 7:32 AM EST