It would use an updatepanel with the button click as the trigger.
This is what I've come up with so far. The button would now have to be programmed to cycle through the videos
- <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
-
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-
<html xmlns="http://www.w3.org/1999/xhtml">
-
<head runat="server">
-
<title>Untitled Page</title>
-
</head>
-
<body>
-
<form id="form1" runat="server">
-
<div>
-
<asp:ScriptManager ID="ScriptManager1" runat="server">
-
</asp:ScriptManager>
-
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
-
<ContentTemplate>
-
-
<embed runat="server" id="Video1" src="http://www.youtube.com/v/MUl0oKQmnus&hl=en&fs=1&"
-
type="application/x-shockwave-flash" allowscriptaccess="always"
-
allowfullscreen="true" width="425" height="344"> </embed>
-
</ContentTemplate>
-
<Triggers>
-
<asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
-
</Triggers>
-
</asp:UpdatePanel>
-
</div>
-
<asp:Button ID="Button1" runat="server" Text="Button" />
-
</form>
-
</body>
-
</html>
This site shows how to update with a random picture on a timer, but you can modify it a little to use videos and buttons instead of a timer, like I've started to do.
http://weblogs.asp.net/dmiyamasu/arc...and-timer.aspx
It's in C#, which I know very little about, and I'm trying to translate it into VB.
I'll let you know if I figure it out. You may beat me to it :D\
Jesse