// Bind videos to repeater VideoRepeater.DataSource = VideosList; VideoRepeater.DataBind(); }
Replace VIDEO_ID_1 , VIDEO_ID_2 , and VIDEO_ID_3 with the actual IDs of the videos you want to feature.
protected void Page_Load(object sender, EventArgs e) { // Fetch videos from database or API VideosList = FetchVideos();
<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.
Example using C# and ASP.NET:
