How to download a zip file in asp.net mvc? -
folder structure... /albums/test.zip
i have button on web page
on button click, test.zip inside albums should downloaded.
i not needing build zip, on button click, available zip should downloaded.
thats it. using asp.net mvc
it's simple this:
<a href="~/albums/test.zip"> <img src="~/images/download.png" alt="download zip file." /> </a>
the download start when user clicks image.
Comments
Post a Comment