dimanche 30 mars 2014

How to implement a desktop download from web form in VB.NET


Vote count:

0




In my website that I am currently working on, I store some images in a folder in the same directory as my .aspx files in the project file. What method can I use to write a code so that when someone clicks an asp:Button, the browser downloads the image (with a given url) for them.


Here is a code example of what it would look like.



Protected Sub button_img_Click(sender As Object, e As EventArgs) Handles button_img.Click
MagicalFunctionDownloadImage("image.jpeg")
End Sub


Hope that made sense! Thanks in advance!



asked 47 secs ago






Aucun commentaire:

Enregistrer un commentaire