How to download a zip file in asp.net mvc? -


folder structure... /albums/test.zip

i have button on web page download button

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

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -