Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

How to crerate slide show with AJAX?

$
0
0

Hi,

I downloaded Ajax Control Toolkits 4.5 and created a slide show with slide show extender. But it doesn't work.

this is my code and web services

        [WebMethod]
        public Slide[] GetSlide()
        {
            Slide[] mySlide = new Slide[4];
            mySlide[0] = new Slide("images/01.jpg", "Test", "Test1");
            mySlide[1] = new Slide("images/02.jpg", "Test", "Test1");
            mySlide[2] = new Slide("images/03.jpg", "Test", "Test1");
            mySlide[3] = new Slide("images/04.jpg", "Test", "Test1");
            mySlide[4] = new Slide("images/05.jpg", "Test", "Test1");
            return mySlide;
        }
<div><asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager><asp:Image ID="img1" runat="server" imageurl="~/images/01.jpg" Width="500" Height="500"/><asp:SlideShowExtender ID="SlideShowExtender1"
             runat="server"
             TargetControlID="img1"
             PlayInterval="100"
             AutoPlay="True"
             Loop="True"
             SlideShowServicePath="~/WebService1.asmx"
             SlideShowServiceMethod="GetSlide"></asp:SlideShowExtender></div>

when I run this IE has problem with it and return exception null,
I Used the other Browsers and they Don't have problem but show fixed picture and never change.

I use vs 2013 update3

plz help me Thanks,


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>