Images don't show with SlideShow unless they are in the solutionhttp://forums.asp.net/t/1771349.aspx/1?Images+don+t+show+with+SlideShow+unless+they+are+in+the+solutionWed, 22 Feb 2012 02:26:48 -050017713494840062http://forums.asp.net/p/1771349/4840062.aspx/1?Images+don+t+show+with+SlideShow+unless+they+are+in+the+solutionImages don't show with SlideShow unless they are in the solution <p>I've got a website I've been working on that uses a slideshow extender.&nbsp; I have spent weeks trying to make this work.&nbsp; You can see where it's looping through the code and trying to show it but nothing ever appears.&nbsp; I decided to create a folder in my solution and add images.&nbsp; Well that suddenly worked.&nbsp; I added another image to the same folder without including it in the project and it won't show up.&nbsp; Can anybody tell me the trick to making pics show with an absolute path such as @&quot;c:\Images\myPic.jpg&quot; ?&nbsp; Thanks, Brucester</p> 2012-02-20T02:05:59-05:004843644http://forums.asp.net/p/1771349/4843644.aspx/1?Re+Images+don+t+show+with+SlideShow+unless+they+are+in+the+solutionRe: Images don't show with SlideShow unless they are in the solution <p>This should work:</p> <pre class="prettyprint">[System.Web.Services.WebMethod] [System.Web.Script.Services.ScriptMethod] public static Slide[] GetSlidesFileSystem() { string imageFolder = @&quot;C:\Images&quot;; Slide[] slides = null; DirectoryInfo directory = new DirectoryInfo(imageFolder); if (directory.Exists) { FileInfo[] images = directory.GetFiles(&quot;*.jpg&quot;); slides = new Slide[images.Length]; int i = 0; foreach (FileInfo image in images) { string title = image.Name; string imagePath = image.FullName; slides[i] = new Slide(imagePath, title, title); i&#43;&#43;; } } return slides; }</pre> 2012-02-21T17:51:31-05:004844054http://forums.asp.net/p/1771349/4844054.aspx/1?Re+Images+don+t+show+with+SlideShow+unless+they+are+in+the+solutionRe: Images don't show with SlideShow unless they are in the solution <p>Hi, Please refer this</p> <p><a href="http://www.dotnetcurry.com/ShowArticle.aspx?ID=287">http://www.dotnetcurry.com/ShowArticle.aspx?ID=287</a></p> <p><a href="http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/SlideShow/SlideShow.aspx">http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/SlideShow/SlideShow.aspx</a></p> 2012-02-22T02:26:48-05:00