Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 21, 2009 10:41 AM by young345
Feb 20, 2009 08:36 PM|LINK
i have created a slideshow using the ajax slideshow control. i created it and tested it in a regular .aspx page and it worked fine. but when i went to put it into a master page it doesnt work. when i load the page, it doesnt detect the images. the images
are stored in a file in the solution explorer. i havnt included anything like next buttons because just want the actual slideshow.
does anybody know why its not working?
i have copied my code underneath.
any advice and help would be great.
Feb 21, 2009 08:53 AM|LINK
To use SlideShow on Masterpage, you need to create webservice as follows:
Add New WebService to you site/project and use following code:
/// Summary description for WebService1
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
public class WebService1 : System.Web.Services.WebService
public AjaxControlToolkit.Slide GetSlides()
AjaxControlToolkit.Slide slides = new AjaxControlToolkit.Slide;
slides = new AjaxControlToolkit.Slide("images/first.gif", "BH", "GB");
slides = new AjaxControlToolkit.Slide("images/last.gif", "Su", "Sn");
slides = new AjaxControlToolkit.Slide("images/edit.gif", "Wr", "W.");
slides = new AjaxControlToolkit.Slide("images/delete.gif", "Wl", "Lr");
(Removed static from Webservice)
Modify HTML Markup as:
<asp:Image ID="Image1" runat="server" Height="100px" Width="100px" /><br />
<cc1:SlideShowExtender ID="SlideShowExtender1" AutoPlay="true" Loop="true" SlideShowServiceMethod="GetSlides" SlideShowServicePath="WebService1.asmx"
(Added SlideShowServicePath="WebService1.asmx", replace it with your webservice path)
Hope this helps...
Feb 21, 2009 10:41 AM|LINK
thanks for your help,
i did what you asked and still for some strange reason when i go to load the page my images are not ebing recognised. i have made many time to make sure that the file / path names match and they do. for some reaon it just doesnt seem to recognise them. do
you have any idea why or any adivce on how i can check whats wrong?
thank you, much appreciated