Reputation: 93
I am creating a control that contains an html5 audio element and I want to be able to change the source of the audio dynamically. I can access the audio element in C# but am unable to figure out how to change the src attribute. Thanks!
Upvotes: 2
Views: 1888
Reputation: 1604
Have you tried this way?
audioElement.Attributes["src"] = "something";
Upvotes: 1