It's really simple. What you need to do is get the path of the file to download, put the value in ViewData and make an href to that file with value "Download" to target="_blank". This will show a popup to download the file.
[lt]a href='[lt]%=path%[gt]' target="_blank" [gt] Download [lt]/a[gt]
[lt] = "<"
[gt] = ">"
No comments:
Post a Comment