Advertise with us

Cant see server Audio Tag

<audio runat="server" id="audioMessageToPlay" src="" controls="controls"/>

in a user control, i want to manipulate the src tag in code behind, but when i get there the control


isnt there ?

I cant even do

    audioMessageToPlay.Attributes.Add("src", "mymusic.mp3")

Any ideas on how to get it, im currently updating to SP1 maybe that will help ?

Last updated:8/28/2014 2:17:44 AM

1 Answers

Sumit Kesarwani
Sumit Kesarwani

Hi Jeet, 

try this:
protected void Page_Load(object sender, EventArgs e)
    audioMessageToPlay.Attributes.Add("src", "media/keineZeit.mp3");