I run a forum and I want to automatically replace any link to a YouTube video with a iframe youtube video player using ASP.NET+C#.
How to replace this Link
with
<iframe class="youtube-player" frameborder="0" height="250" src="http://www.youtube.com/embed/uN-A8eHte1g?rel=0&wmode=Opaque" title="YouTube video player" type="text/html" width="100%"></iframe>
I can’t really find anything like this on the ineternet.
Hope someone could help me this. Thanks in advance!
I understand this code is in php and you want a c# example but this will give information regarding the approach you should take. Also the php code is very easy to read and should be fairly simple to concvert into c#.
http://mattcrouch.net/blog/2011/01/converting-urls-into-links-and-youtube-videos/