title: AJAX SlideshowExtender Troubles
body: <p>I am having trouble getting the AJAX slideshow extender to work. It will not rotate the images on the page. The strange thing is is that it will create an img tag outside of the  tag at the bottom of the page when it renders in the browser and rotate the images there, something like this</p>
  
  <pre><code>&lt;img style=" display:none;" src="the rotating images" /&gt;
  </code></pre>
  
  <p>It will not supply or rotate an image inside the target control though. My code is as follows:</p>
  
  <p>.aspx page</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Slideshow.aspx.cs" Inherits="MirandasWebsite.Slideshow" %&gt;
  
  &lt;%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
  &lt;title&gt;Miranda's Slideshow&lt;/title&gt;
  &lt;link href="Styles/Mir3.css" rel="stylesheet" type="text/css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form id="form1" runat="server"&gt;
  &lt;asp:ScriptManager ID="smSlideshow" runat="server" EnablePartialRendering="true"&gt;
  &lt;/asp:ScriptManager&gt;
  &lt;div class="Images"&gt;
      &lt;asp:Image ID="mySlideshow" runat="server" Height="250" Width="300"  /&gt;
  &lt;/div&gt;
  &lt;asp:SlideShowExtender ID="Slideshowextender1" runat="server" BehaviorID="SSBehaviorID"
      TargetControlID="mySlideshow" SlideShowServiceMethod="GetSlides" AutoPlay="true"
      NextButtonID="btnNext" PreviousButtonID="btnPrev" PlayButtonID="btnPlay" PlayButtonText="Play"
      StopButtonText="Stop" Loop="true"&gt;
  &lt;/asp:SlideShowExtender&gt;
  &lt;div id="slideshowDescription" runat="server"&gt;
  &lt;/div&gt;
  &lt;div class="centerControls"&gt;
  &lt;asp:Label ID="lblDesc" runat="server" Text=""&gt;&lt;/asp:Label&gt;&lt;br /&gt;
  &lt;asp:Button ID="btnPrev" runat="server" Text="Previous" /&gt;
  &lt;asp:Button ID="btnPlay" runat="server" Text="" /&gt;
  &lt;asp:Button ID="btnNext" runat="server" Text="Next" /&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and the codebehind</p>
  
  <pre><code>    [System.Web.Services.WebMethod]
      [System.Web.Script.Services.ScriptMethod]
      public static AjaxControlToolkit.Slide[] GetSlides()
      {
          DataTable table = SiteAccess.GetImages();
          AjaxControlToolkit.Slide[] imgSlide = new AjaxControlToolkit.Slide[table.Rows.Count];
          int i = 0;
          foreach (DataRow row in table.Rows)
          {
              imgSlide[i] = new AjaxControlToolkit.Slide(row["Full"].ToString(), String.Empty, String.Empty);
              i++;
          }
  
          return (imgSlide);
      }
  </code></pre>
  
  <p>Any clues as to why this is happening. I have tried everything I can think of including hardcoding in  the images, but I still get the same results.</p>