protected void DisplayVideoStatus() { Util.YouTubeStats stats = new Util.YouTubeStats(item.Fields["VideoID"].Value); VideoTitleText.Text = stats.Title; VideoIframe.Text = "<iframe width=\"480\" height=\"360\" src=\"http://www.youtube.com/embed/" + this.YouTubeVideoID + "?rel=0\" frameborder=\"0\" allowfullscreen></iframe>"; VideoInfo.Text += "<div style=\"float:right;width:200px\">Video Information<br /></div>"; VideoViews.Text = stats.Views.ToString(); VideoComments.Text = stats.CommentCount.ToString(); VideoUploaded.Text = stats.Updated.ToString("dd MMMM yyyy HH:mm"); VideoLink.Text = "<a href=\"#\" onclick=\"window.open('" + stats.Link + "')\">" + stats.Link + "</a>"; }
protected void DisplayVideoStatus() { Util.YouTubeStats stats = new Util.YouTubeStats(item.Fields["VideoID"].Value); VideoTitleText.Text = stats.Title; VideoIframe.Text = "<iframe width=\"480\" height=\"360\" src=\"http://www.youtube.com/embed/" + this.YouTubeVideoID + "?rel=0\" frameborder=\"0\" allowfullscreen></iframe>"; VideoInfo.Text += "<div style=\"float:right;width:200px\">Video Information<br /></div>"; VideoViews.Text = stats.Views.ToString(); VideoComments.Text = stats.CommentCount.ToString(); VideoUploaded.Text = stats.Updated.ToString("dd MMMM yyyy HH:mm"); VideoLink.Text = "<a href=\"#\" onclick=\"window.open('" + stats.Link + "')\">" + stats.Link + "</a>"; }