Consolidating images in one folder in wwwroot

G

Guest

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
 
S

Steve C. Orr [MVP, MCSD]

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
 
B

Bruce Barker

or create an images vdir under root, and reference all images as:

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

-- bruce (sqlwork.com)
 
G

Guest

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
 
S

Steve C. Orr [MVP, MCSD]

No, you don't need to copy those.




pmud said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top