How do I point SlideShowExtender to images outside my application directory?

Last post 09-03-2008 4:45 AM by Vince Xu - MSFT. 2 replies.

Sort Posts:

  • How do I point SlideShowExtender to images outside my application directory?

    08-31-2008, 9:30 PM
    • Member
      495 point Member
    • jwelsh
    • Member since 02-13-2004, 9:30 AM
    • Posts 182

    Hi,

    I'm thinking (hoping) this is relatively easy to do, but I'm not having any luck with it.  I have an application with a SlideShowExtender that is currently using images located in a directory within my application.  I would like to have it use images located in a directory outside of my application, but I don't know how to create a path that will do that.

    I would like to put the images in a folder in Inetpub or wwwroot, or even elsewhere on my C: drive.  I would like this to work when I'm running it right out of VS2008, as well as when it is published to my server.  Do I need to create a virtual directory to do this, or can I just somehow point to the specific drive and path?  If I need a virtual directory, could you please give me a brief explanation on doing that?

    I'm currently using a web service to load the images, titles and descriptions into an Ajax Toolkit slide array, if that makes any difference.

    Thanks for your help!

  • Re: How do I point SlideShowExtender to images outside my application directory?

    09-01-2008, 9:29 PM
    • Member
      495 point Member
    • jwelsh
    • Member since 02-13-2004, 9:30 AM
    • Posts 182

    Hi,

    I've been playing around with this some more.  I still can't figure out a way to use images that aren't stored as part of my application.

    I had an idea to put them in the App_Data folder.  At least that way I could uncheck the box when I publish so that I don't have to publish the images every time.  However, I can't get the SlideShowExtender to recognize this folder either.  Is there something special about this folder, and why can't it see/use it?

    Thanks!

  • Re: How do I point SlideShowExtender to images outside my application directory?

    09-03-2008, 4:45 AM
    Answer

    Hi,

    The paths of image files can be set as the relative directory or absolute directory.

    Relative directory:

            For example:     ../images/file.jpg

            In this aspect, the files should be in the application.

    Absolute directory:

             For example:     Http://domain/folder/file.jpg

             In this aspect, the files can be not in the application. However, you need define the url of these photo files in IIS.

    1. Please make sure you have installen IIS.
    2. Add the image folder as the virtual directory in IIS.
    3. Now, you can see the image folder in the IIS. And you can access it via http://domain/imagesfolder/file.jpg

     


    Vince Xu
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (3 items)