I have an image on my web page..I want that if anyone click on the image then the music file should start playing.
How can i do it?
Adding music file with image
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prashant ChaudharyRank #1,151 · 1.6K reputationPosted Nov 7, 2011, 8:37 PM EST
> on button click music file will get uploaded ....for this you have to this code
String x = FileUpload.PostFile.FileName.ToString();
Akash AhlawatRank #3,915 · 379 reputationPosted Nov 7, 2011, 10:09 PM EST
My page is developed in html,so pls give the html code for the same..
Thanks
Prashant ChaudharyRank #1,151 · 1.6K reputationPosted Nov 8, 2011, 1:45 AM EST