Monday 15 March 2010

html - Download link for a webpage in cshtml doesn't work -



html - Download link for a webpage in cshtml doesn't work -

so creating link in webpage named uploadedfiles.cshtml using next code:

<a href="@model.doc1" download="doc_submit1" target="_blank" name="download"/>

here path of file downloaded fetched model passed controller

now created test webpage in .html same anchor tag , allows me download file. , i'm confused!

the problem beingness link in .cshtml file doesn't start download whereas same code in .html file downloads specified file.

html asp.net-mvc-4 razor

No comments:

Post a Comment