• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 415
  • Last Modified:

ASP.net Display Youtube video in new browser/pop out


I want a user to click on a button or link that causes a new browser to show a Youtube video. What is the best way to do this...preferably without using code
Murray Brown
Murray Brown
2 Solutions
Pure HTML:

<a href="Insert your Youtube link here!" target="_blank">Click here to watch my Youtube video!</a>

Open in new window


or specify it in your "Target" property of your ASP.NET control

you can embed or use an iframe to show the video, here are examples

you can get embed links from youtube site, right below your desired video

have a separate page with the embedded code and save it in a name, say "video.html":
<!DOCTYPE html>

<iframe width="420" height="345"
src="http://www.youtube.com/embed/DBNYwxDZ_pA" frameborder="0" allowfullscreen">


Open in new window

in your page, have a html anchor tag that links to this video.html:
<a href="video.html" target="_blank">Click here to View</a>

Open in new window

Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thank you both very much
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now