You could exclude a managed path in WSS Central Admin -> Configure Virtual Server Settings -> Define Managed Paths-> Exclude the path (make sure and use the /), create a virtual directory on the same virtual server ( with the same excluded name) in IIS and put the images there. Like, exclude portal.msft/images and then create an images virtual directory Check out this link, there is a demo for excluding managed paths, just scroll down to item 20, by Suraj Poozhiyil. www.microsoft.com/.../manifest.xml&rate=2 Ben Curry Scuba Instructor (and sharepoint guy, go figure...) nitrox-diver@... --- On Tue 09/20, newscooter_2000 scott.hayman@... > wrote: From: newscooter_2000 [mailto: scott.hayman@...] To: sharepointdiscussions@yahoogroups.com Date: Tue, 20 Sep 2005 16:10:26 -0000 Subject: [sharepointdiscussions] creating folders used by web part in sharepoint I'm trying to create a folder that holds images for a series of web
parts. I thought I could simply create a 'images' folder in the
root ('c:\inetpub\wwwroot\images') and have the web part load the
image through an IMG tag. This could be used by
http://localhost/images/. Kind of like ASP.NET.
I found that the only place I can add an image that my web part is
able to find is -
C:\Program Files\Common Files\Microsoft Shared\web server
extensions\60\TEMPLATE\LAYOUTS\1033\IMAGES
I can load the image by using:
output.WriteBeginTag("IMG");
output.WriteAttribute("src","/_layouts/images/Pic.png");
output.Write(HtmlTextWriter.TagRightChar);
output.WriteEndTag("IMG");
If I try to use another folder SharePoint is unable to find the
image file. I'd like to be able to separate my custom images (non-
stock SharePoint images) in a separate folder. Does anyone know how
to do this?