Cant see server Audio Tag

Total Post:110

Points:776
 1140  View(s)
Ratings:
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 ?

  1. Post:378

    Points:2694
    Re: Cant see server Audio Tag

    Hi Jeet, 

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

      Modified On Apr-05-2018 04:37:15 AM

Answer