Making a link to an MP3 file prompt a user to download?
I want to have a download button for users to download an MP3 file. When I click a link to the mp3 file it just opens in Windows Media Player automatically. Is there a way that I can make it prompt the user with the Save dialog (Like when you right click a link and choose save target as)
Re: Making a link to an MP3 file prompt a user to download?
Do you have a specific adress to this mp3 file?
in that case you could do something like (just assuming youre using VB 2005):
VB Code:
If SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
my.Computer.Network.DownloadFile(AdressToFile, SaveFileDialog1.FileName)
process.Start(SaveFileDialog1.FileName)
End If