Ask your own question, for FREE!
Computer Science 12 Online
OpenStudy (poopsiedoodle):

Asp.NET VB. How do you make a button that downloads a file using the save file dialog?

OpenStudy (konradzuse):

the button's action event would be to load the save dialog. not too sure how all that works in VB tho.

OpenStudy (poopsiedoodle):

Actually, I got it working. I used \(\mbox{Response.ContentType = "image/jpeg" Response.AppendHeader("Content-Disposition", "attachment; filename=SailBig.jpg") Response.TransmitFile(Server.MapPath("~/images/sailbig.jpg")) Response.[End]()}\)

OpenStudy (poopsiedoodle):

Response.ContentType = "Open Tibia Binary Map/otbm" Response.AppendHeader("Content-Disposition", "attachment; filename=house.otbm") Response.TransmitFile(Server.MapPath("~/maps/house.otbm")) Response.[End]() *

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!