List<Literal> lt = new List<Literal>(); string url = "https://www.youtube.com/embed/9bi9eDZUJPQ"; var videoframe = new Literal(); videoframe.Text = string.Format(@"<iframe width=""628"" height=""374"" src=""{0}"" frameborder=""0"" allowfullscreen></iframe>", url); lt.Add(videoframe.Text); foreach (Literal l in lt)Panel1.Controls.Add(l); { }
lt
List<Literal>
string
Text
videoframe
lt.Add(videoframe.Text);
lt.Add(videoframe);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)