Hello:
I have the script below that I'm using for a slide show on a page in a web built based on the Beerhouse project. It would be neat, if I could load the photos by logging in as Admin and add them to the slideshow from the Admin menu.
I was wondering if there were any existing samples for that? Or if not, any help to add that feature to the Admin folder would be greatly appreciated!
=========== code i'm using for slideshow ===============
<script runat="Server" type="text/C#">
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static AjaxControlToolkit.Slide[] GetSlides()
{
AjaxControlToolkit.Slide[] slides = new AjaxControlToolkit.Slide[8];
slides[0] = new AjaxControlToolkit.Slide("images/GB.jpg.jpg", "The Old House", "GB");
slides[1] = new AjaxControlToolkit.Slide("images/Colors 002.jpg", "The Old House", "Front View");
slides[2] = new AjaxControlToolkit.Slide("images/Colors 028.jpg", "The Old House", "Side View");
slides[3] = new AjaxControlToolkit.Slide("images/Colors 029.jpg", "The Old House", "Our Workers");
slides[4] = new AjaxControlToolkit.Slide("images/Colors 030.jpg", "The Old House", "Our equipment");
slides[5] = new AjaxControlToolkit.Slide("images/FinColors 001.jpg", "The Old Baker House", "Work on the DeBergh House");
slides[6] = new AjaxControlToolkit.Slide("images/FinColors 002.jpg", "The Old House", "House2");
slides[7] = new AjaxControlToolkit.Slide("images/FinColors 009.jpg", "The Old House", "Front View");
return(slides);
}
</script>
<br />
<br />
<asp:Image ID="Image1" runat="server" Height="316px" Width="388px" /><br />
<br />
<asp:Label ID="lblImageDescription" runat="server" /><br />
<br />
<asp:Button ID="Btn_Previous" runat="server" Text="Previous" />
<asp:Button ID="Btn_Next" runat="server" Text="Next" Width="64px" /><br />
<br />
<asp:Button ID="Btn_Play" runat="server" Text="Play" /><br />
<cc1:SlideShowExtender ID="SlideShowExtender1"
AutoPlay="true" ImageDescriptionLabelID="lblImageDescription"
Loop="true" NextButtonID="Btn_Next" PlayButtonID="Btn_Play"
PlayButtonText="Play" PreviousButtonID="Btn_Previous"
SlideShowServiceMethod="GetSlides" StopButtonText="Stop"
TargetControlID="Image1" runat="server">
</cc1:SlideShowExtender>
</div>
============
Rachel