How do I force the download of a file which link is inside a GridView?
Posted
by murderdoll
on Stack Overflow
See other posts from Stack Overflow
or by murderdoll
Published on 2010-04-07T19:41:55Z
Indexed on
2010/04/07
19:43 UTC
Read the original article
Hit count: 238
I have a Gridview that shows a list of files previously uploaded to the server with a HyperLink control to be able to download it, I need to force a download every time the user clicks on one of the provided links, so that the file does not open directly on the browser (they are usually images). Currently I have a side-server function that forces a download, but I do not know how to assign this function to each one of the links when the user clicks on it.
© Stack Overflow or respective owner