Posting MP3 to asp.net site

bidgadget
bidgadget used Ask the Experts™
on
I want to post a MP3 file on my asp.net website.  I am using vb.net.   When the user clicks on the file I need it to play.  One option I tried was to just put a hyperlink to the file.  On edge and chrome it works fine but in IE it asks to download or run.   I need the file to play without asking to download or run.    Any help would be appreciated.

thank you
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
Commented:
use the html5 player
<audio controls>
  <source src="horse.ogg" type="audio/ogg">
  <source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>

Open in new window

Author

Commented:
That worked. Anyway to get rid of the option to download?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial