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

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

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

html - jQuery UI Sortable - Remove placeholder after item is dropped -