ASP.NET AJAX SlideShow Extender

Last post 02-10-2010 8:16 AM by Sonu. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-10-2010 4:35 AM

    • elizas
    • Top 500 Contributor
    • Joined on 02-08-2010
    • Wannabe Slacker
    • Points 33

    ASP.NET AJAX SlideShow Extender

    In ASP.NET AJAX Control toolkit there is an extender known as SlideShowExtender. This can be used to create a Slide show by looping through the images. The images are shown in the SlideShow by using a PageMethod or a Webservice.

    Example:

    <div>
            /*Add a script manager in your page */
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
     
           /*This is the initial image that will be shown to the user*/
           <div>
                 <asp:Image ID="img1" runat="server"
                                        Height="400px" 
                                       Width="400px"
                                       ImageUrl="~/images/aa.jpg" />
           </div>    
     
           /*Drag and Drop a SlideShowExtender*/   
           <cc1:SlideShowExtender ID="SlideShowExtender1" runat="server"
                                                         BehaviorID="SlideShowBehaviorID"
                                                         TargetControlID="img1"
                                                         SlideShowServiceMethod="GetImagesForSlide"
       AutoPlay="true"
     ImageDescriptionLabelID="lblDesc"
                                                         NextButtonID="btnNext"
                                                         PreviousButtonID="btnPrev"
                                                         PlayButtonID="btnPlay"
      PlayButtonText="Play"
          StopButtonText="Stop"
                       Loop="true" >
           </cc1:SlideShowExtender>        
           <div>
                /*Description about the image will be shown in this Label*/
         <asp:Label ID="lblDesc" runat="server" Text=""></asp:Label><br />
     
               /*Previous, Next Button to see the previous, next image and Play and  stop button to start and stop the  slide show */
             <asp:Button ID="btnPrev" runat="server" Text="Previous" />
             <asp:Button ID="btnPlay" runat="server" Text="" />
             <asp:Button ID="btnNext" runat="server" Text="Next" />
            </div>
     </div>

    Eliza

    Filed under: ,
  •  Advertisement

    Featured Advertisement

     
  • 02-10-2010 8:16 AM In reply to

    • Sonu
    • Top 10 Contributor
    • Joined on 05-22-2006
    • Montreal / Canada
    • Slacker
    • Points 12,183
    • MVP

    Re: ASP.NET AJAX SlideShow Extender

    What is the question here? If you are posting a code-snippet, please post it here: http://dotnetslackers.com/codesnippets/snippetlist.aspx - This post will be deleted in few days.

    [MVP since 2005] [MCAD]
    Webmaster of DotNetSlackers
    Question or Suggestion?
    Feel free to ask my any .NET question
    Our Posting FAQ
Page 1 of 1 (2 items)