473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Consolidating images in one folder in wwwroot

Hi,

On our webserver we have many web projects deployed. Each project has its
own folder for Images. Many of the images are common between projects.. I
need to create a separate folder in wwwroot which contains all the images of
all the projects & want to reference that in my projects. How can I do that?
Do i need to add something to the Web config file saying that for all images
look in the IMAGES folder in wwwroot???

How to go about doing this?

Thanks
--
pmud
Nov 19 '05 #1
5 1339
In each IIS application, map a virtual directory to this common images
directory.
Then every image URL can point to a generic url, such as this:
/images/somepicture.jpg

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"pmud" <pm**@discussions.microsoft.com> wrote in message
news:31**********************************@microsof t.com...
Hi,

On our webserver we have many web projects deployed. Each project has its
own folder for Images. Many of the images are common between projects.. I
need to create a separate folder in wwwroot which contains all the images
of
all the projects & want to reference that in my projects. How can I do
that?
Do i need to add something to the Web config file saying that for all
images
look in the IMAGES folder in wwwroot???

How to go about doing this?

Thanks
--
pmud

Nov 19 '05 #2
or create an images vdir under root, and reference all images as:

<img src="/images/sample.gif">

-- bruce (sqlwork.com)
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
In each IIS application, map a virtual directory to this common images
directory.
Then every image URL can point to a generic url, such as this:
/images/somepicture.jpg

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"pmud" <pm**@discussions.microsoft.com> wrote in message
news:31**********************************@microsof t.com...
Hi,

On our webserver we have many web projects deployed. Each project has its
own folder for Images. Many of the images are common between projects.. I
need to create a separate folder in wwwroot which contains all the images
of
all the projects & want to reference that in my projects. How can I do
that?
Do i need to add something to the Web config file saying that for all
images
look in the IMAGES folder in wwwroot???

How to go about doing this?

Thanks
--
pmud


Nov 19 '05 #3
Hi Steve,

There is a file called vssver.scc & a folder called _vti_cnf in each of the
Image folders in each application. So do I need to copy those too?? And if
yes ,then by copying images form different folder they will get overwritten
with the new file & folder..

What to do aboyt that?

Thanks

"Steve C. Orr [MVP, MCSD]" wrote:
In each IIS application, map a virtual directory to this common images
directory.
Then every image URL can point to a generic url, such as this:
/images/somepicture.jpg

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"pmud" <pm**@discussions.microsoft.com> wrote in message
news:31**********************************@microsof t.com...
Hi,

On our webserver we have many web projects deployed. Each project has its
own folder for Images. Many of the images are common between projects.. I
need to create a separate folder in wwwroot which contains all the images
of
all the projects & want to reference that in my projects. How can I do
that?
Do i need to add something to the Web config file saying that for all
images
look in the IMAGES folder in wwwroot???

How to go about doing this?

Thanks
--
pmud


Nov 19 '05 #4
No, you don't need to copy those.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"pmud" <pm**@discussions.microsoft.com> wrote in message
news:47**********************************@microsof t.com...
Hi Steve,

There is a file called vssver.scc & a folder called _vti_cnf in each of
the
Image folders in each application. So do I need to copy those too?? And if
yes ,then by copying images form different folder they will get
overwritten
with the new file & folder..

What to do aboyt that?

Thanks

"Steve C. Orr [MVP, MCSD]" wrote:
In each IIS application, map a virtual directory to this common images
directory.
Then every image URL can point to a generic url, such as this:
/images/somepicture.jpg

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"pmud" <pm**@discussions.microsoft.com> wrote in message
news:31**********************************@microsof t.com...
> Hi,
>
> On our webserver we have many web projects deployed. Each project has
> its
> own folder for Images. Many of the images are common between projects..
> I
> need to create a separate folder in wwwroot which contains all the
> images
> of
> all the projects & want to reference that in my projects. How can I do
> that?
> Do i need to add something to the Web config file saying that for all
> images
> look in the IMAGES folder in wwwroot???
>
> How to go about doing this?
>
> Thanks
>
>
> --
> pmud


Nov 19 '05 #5
Thanks Steve.

"Steve C. Orr [MVP, MCSD]" wrote:
No, you don't need to copy those.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"pmud" <pm**@discussions.microsoft.com> wrote in message
news:47**********************************@microsof t.com...
Hi Steve,

There is a file called vssver.scc & a folder called _vti_cnf in each of
the
Image folders in each application. So do I need to copy those too?? And if
yes ,then by copying images form different folder they will get
overwritten
with the new file & folder..

What to do aboyt that?

Thanks

"Steve C. Orr [MVP, MCSD]" wrote:
In each IIS application, map a virtual directory to this common images
directory.
Then every image URL can point to a generic url, such as this:
/images/somepicture.jpg

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"pmud" <pm**@discussions.microsoft.com> wrote in message
news:31**********************************@microsof t.com...
> Hi,
>
> On our webserver we have many web projects deployed. Each project has
> its
> own folder for Images. Many of the images are common between projects..
> I
> need to create a separate folder in wwwroot which contains all the
> images
> of
> all the projects & want to reference that in my projects. How can I do
> that?
> Do i need to add something to the Web config file saying that for all
> images
> look in the IMAGES folder in wwwroot???
>
> How to go about doing this?
>
> Thanks
>
>
> --
> pmud


Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Wayne | last post by:
I have a script that uses filesystemobject that reads files from a given path, in my case images. It is running on a server that is 2000 adv svr w/ all current patches. The script prior to some...
4
by: Barry G. Sumpter | last post by:
Complete newbie here. Just sorted out that myASP.asp will ONLY execute on c:\inetput\wwwroot when I access it thru http://localhost/myASP.asp but if I copy myASP.asp to a sub folder of...
0
by: pmud | last post by:
Hi, I had posted this question earlier also but got no suitable answer.The problem is that when I try to create a new project, the project gets created in a DEMO folder in wwwroot. When I hit...
4
by: Tim::.. | last post by:
Hi can someone please tell me why I keep getting the following error and how I might fix it! ...::ERROR::.. Exception Details: System.Runtime.InteropServices.ExternalException: A generic error...
5
by: jasonburrwc84 | last post by:
I'm new to asp.net so bare with me. I'm reading through the asp.net unleashed book and am to the section on creating classes. After creating a ..vb file which I can successfully compile and...
5
by: IkBenHet | last post by:
Hello, I use this script to upload image files to a folder on a IIS6 server: ******************* START UPLOAD.ASPX FILE ********************** <%@ Page Language="VB" Debug="true" %>
1
by: bone_idle31 | last post by:
I have a folder in the web directory with all the images in them (ex:c:\inetpub\wwwroot\Photographs\l_photos\Elephant001.jpg)and the image folder is named as "l_photos". Large pictures Also there...
2
by: =?Utf-8?B?SmVmZnJleQ==?= | last post by:
I made a typo on a Project name (e.g. Wong, instead of Wang). Later on I renamed the Soution, Project, WebForm., etc, except the file folder name, back to Wang. Then after I closed the VS.net and...
76
by: rcoco | last post by:
Hi all, I'm facing this problem I have images on my website but when I Deploye the website on server the Images are not there I only get the X sign. How can I go about this. Thanks
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.