Home
About
Contact
Categories
Classic ASP (28 - Sub-Categories)
CSS (1 - Sub-Category)
JavaScript (4 - Sub-Categories)
Databases (22 - Sub-Categories)
ASP.NET (23 - Sub-Categories)
Delphi (5 - Sub-Categories)
Windows Server Core (3 - Sub-Categories)
VMWare (1 - Sub-Category)
Code Editing Tools (2 - Sub-Categories)
Linux (2 - Sub-Categories)
Dell Servers (15 - Sub-Categories)
Bug Reports
(Bugs Fixed
New CFFCS Coding Source is still in Beta
Please report any errors to the [Contact] page. Thank you.
Classic ASP (28)
CSS (1)
JavaScript (4)
Databases (22)
ASP.NET (23)
Delphi (5)
Windows Server Core (3)
VMWare (1)
Code Editing Tools (2)
Linux (2)
Dell Servers (15)
Resources
[View The Source Code For This Project]
Format SQL Script
ASP.NET
VB.NET
ASP.NET VB - play YouTube videos on your page
HTML
YouTube ID
<%' Create our variable Dim strYouTube As String = Request.Form("YouTube") Dim UTube As String ' Next we call our variable and query it against the value of the input If strYouTube <> "" Then UTube = Trim(Request.Form("YouTube")) UTube = Replace(UTube, "'", "'") %>
<%End If %>
CSS
#YTBut { border-radius: 10%; width: 25%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; resize: vertical; } #YTField{ border-radius: 10%; width: 25%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; resize: vertical; }
ASP.NET
Load.aspx.vb
Partial Class Load Inherits Page Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load 'Dim getSub As String = Request.Form("Submit") Dim getYT As String = Request.Form("YouTube") If getYT <> "" Then IDLabel.Text = "If ID is correct, Your video will Load below" Else IDLabel.Text = "Enter a YouTube Video ID, then press the button =>" End If End Sub Protected Sub YTBut_Click(sender As Object, e As EventArgs) Handles YTBut.Click ShowYT.Visible = True End Sub End Class
Preview
Tags
play YouTube videos on your site
ASP.NET with VB play YouTube videos on your site