This topic is locked
[SOLVED]

 Version 9.7 YouTube Video on Dashboard Page

3/11/2017 3:08:43 PM
ASPRunner.NET General questions
jadach authorDevClub member

I see we can now add code snippets to the dashboard page. Has anyone added a YouTube video? I do not know the syntax to use in the code snippet dialog box.

Thanks

Pete K 3/14/2017

It appears to be server-side code, so you'd have to echo out the JavaScript or html to embed. I did it using HTML in an iFrame:

MVCFunctions.Echo("<iframe width='560' height='315' src='https://www.youtube.com/embed/Kg-Qdrr3XSk'; frameborder='0' allowfullscreen></iframe>");
jadach authorDevClub member 3/14/2017



It appears to be server-side code, so you'd have to echo out the JavaScript or html to embed. I did it using HTML in an iFrame:

MVCFunctions.Echo("<iframe width='560' height='315' src='https://www.youtube.com/embed/Kg-Qdrr3XSk'; frameborder='0' allowfullscreen></iframe>");



I love when I get the answer. Thanks Peter. Works perfectly.
PS. I like that song too <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=81644&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

Pete K 3/15/2017



I love when I get the answer. Thanks Peter. Works perfectly.

PS. I like that song too <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=81654&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />


You're welcome. It just happened that I was listening to that when I answered the post so it seemed as good an example as any.
Cheers!