Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I m making an astrology site in asp.net c# and i want to insert an audio clip on the page load in my home page background....
so please help me that how cn i add audio clip to the page load..
please i need it alot..please help me out
Posted

You can do this very easily by using Html 5.

The HTML5 'audio' tag defines sound, such as music or other audio streams.

The 'audio' element works in all modern browsers.

XML
<audio controls>
  <source src="horse.mp3" type="audio/mpeg">
</audio>


DEMO : HTML 5 Audio

Please read this for more info: HTML5 audio Element
 
Share this answer
 
v5
Refer:
MP3 Player Server Control[^]
Hope this may help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900