Home > DeveloperSection > Forums > Cant see server Audio Tag
Jeet Verma
Jeet Verma

Total Post:110

Points:776
Posted on    August-28-2014 1:30 AM

 ASP.Net
Ratings:


 1 Reply(s)
 610  View(s)
Rate this:
<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

    audioMessageToPlay.src

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 ?



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    August-28-2014 2:17 AM

Hi Jeet, 
try this:

protected void Page_Load(object sender, EventArgs e)

{

    audioMessageToPlay.Attributes.Add("src", "media/keineZeit.mp3");

}


Don't want to miss updates? Please click the below button!

Follow MindStick