I am trying to create a button on an ASP.net site which when you press it, enables a music player to start streaming music on the site.
I know how to create the button and how to handle events, I just can’t enable my player to start playing the *.mp3 file.
This is the music player that im using on regular html sites.
<embed src="music/ToGlory.mp3" width="140" height="40" autostart="false" loop="TRUE" hidden="True"></embed>
What I was trying to do looks like this:
Sub submit(s As Object, e As EventArgs)
button=embed src=”music/ToGlory.mp3″ width=”140″ height=”40″ autostart=”false” loop=”TRUE” hidden=”True” /embed
End Sub
Try
The .aspx
ButtoncontrolThe JavaScript:
+1 if this helps 🙂 .