If you want to make it more dynamic, you can use a CMS like WordPress or a programming language like C# to fetch videos from a database or API.

public partial class Videos : System.Web.UI.Page { protected List<Video> VideosList = new List<Video>();

<asp:Repeater ID="VideoRepeater" runat="server"> <ItemTemplate> <iframe width="560" height="315" src="https://www.youtube.com/embed/<%# Eval("VideoId") %>" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </ItemTemplate> </asp:Repeater> Note that this is just a basic example, and you'll likely want to add more features, such as video thumbnail images, descriptions, and pagination.

// Bind videos to repeater VideoRepeater.DataSource = VideosList; VideoRepeater.DataBind(); }

protected List<Video> FetchVideos() { // TO DO: Implement video fetching logic return new List<Video> { new Video { Title = "Video 1", VideoId = "VIDEO_ID_1" }, new Video { Title = "Video 2", VideoId = "VIDEO_ID_2" }, new Video { Title = "Video 3", VideoId = "VIDEO_ID_3" }, }; } }

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls;

Example using C# and ASP.NET:

Subscribe

Be the first to know once we publish a new blog post

Join our Discord

Learn best practices from modern engineering teams

LBFM.NET - Videos
Get a free 30-min consultation with the Aviator team to improve developer experience across your organization.

Powered by WordPress