Allow your visitors to play YouTube videos on your site, bringing them closer to you in a way that's uncommon on most websites.
[Part 1]:
Create a New webpage and name it: Youtube.aspx.
Create a Form with a text field and a Submit button.
Set the form's method to [POST] and the action to the same page we are on.
[Youtube.aspx]
CFFCS | CarrzSynEdit: | ASP.NET (VB/C#)

<form runat="server">
<label for="">YouTube ID</label>
<asp:TextBox ID="YouTube" runat="server"></asp:TextBox>
<asp:Label ID="IDLabel" runat="server" Text="Label"></asp:Label>
<asp:Button id="YTBut" runat="server" Text="Play YouTube Video" OnClick="YTBut_Click1" />
</form>

[Part 2]:
Using an [IF STATEMENT] lets us keep the content on the same page and display it only when the visitor provides a YouTube video ID.
Example: C-FGs18RCwk
And the Submit Button has been fired, with the Value of [Play YouTube Video]
Update: I failed at providing the correct information in this script. I provided Classic ASP, instead of VB.NET.
[If Statement]
CFFCS | CarrzSynEdit: | ASP.NET (VB/C#)
<%// Create our variable
    String strYouTube = YouTube.Text;
    String UTube;
    // Next, we call our variable and query it against the value of the input
    if (strYouTube != null && strYouTube != string.Empty)
    {
        UTube = strYouTube.Trim();
        UTube = UTube.Replace("\'", "\'");
%>

[Part 3]:
The YouTube Object Properties.
The Video will display here.
You can change the width and height to the following values.
  1. width="560" height="315"
  2. width="640" height="360"
  3. width="853" height="480"
  4. width="1280" height="720"
Going higher than this can make some visitors' pages too large for their monitors.
[YouTube Object]
CFFCS | CarrzSynEdit: | HTML (Hyper Text Markup Language)

<object width="425" height="344">
<param name="movie" value="https://www.youtube.com/v/<%=UTube%>&hl=en_US&fs=1&"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="https://www.youtube.com/v/<%=UTube%>&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>
</object>

Other Articles Related to this Entry.