Hello,
Im follwing this article https://www.aspsnippets.com/Articles/How-to-play-YouTube-video-in-ASPNet-Application.aspx
to play a youtube video. but in my requirement, i need to pass dynamic url so im setting the url value from code behind as below.
But the video doesnt show up. any suggestions please.
<iframe runat="server" id = "iFramvideo" width="420" src="" height="315" frameborder="0" allowfullscreen></iframe>
string URL = "https://www.youtube.com/watch?v=ZWdIk8CrXGg";
iFramvideo.Attributes["src"] = URL;