Bash
video.aspx page
div style="float: left; width: 162px">
marquee id="mrque1" behavior="scroll" direction="up" runat="server" scrollamount="4"
bgcolor="transparent" style="width: 596px; height: 406px"
onmouseover="this.setAttribute('scrollamount', 0, 0);" onmouseout="this.setAttribute('scrollamount', 6, 0); " enableviewstate="true">
table>
tr>
td style="width: 162px">
asp:Repeater ID="mediaPlayerRepeater" runat="server" > /asp:Repeater>
td>
/tr>
table>
/marquee>
div>
div style="float: left; width: 625px">
table>
tr>
td style="width: 625px">
cc1:Media_Player_Control ID="mdPlayer1" runat="server" Height="406px" Width="620px"
uiMode="Full" />
/td>
tr>
/table>
div>
video.aspx.cs
DirectoryInfo folder = new DirectoryInfo("D:/Website2/Videos/");
FileInfo[] mediaFiles = folder.GetFiles("*.wmv");
foreach (FileInfo mdFile in mediaFiles)
{
Table tbnew = new Table();
TableRow row = new TableRow();
TableCell cell = new TableCell();
cell.Text = "";
cell.Text += @" + mdFile.FullName + "' >";
cell.Text += @"";
cell.Text += @"";
cell.Text += @"";
cell.Text += @"";
cell.Text += @"";
cell.Text += @"";
cell.Text += @"";
cell.Text += @"";
cell.Text += @"";
row.Cells.Add(cell);
tbnew.Rows.Add(row);
mediaPlayerRepeater.Controls.Add(tbnew);
Answers
Know the answer? Post it. Somebody with the same question will find it here.