locked
How to crerate slide show with AJAX? RRS feed

  • Question

  • User-1136231507 posted

    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,

    Thursday, September 4, 2014 6:20 AM

Answers

All replies