473,804 Members | 2,205 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1352
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**@discussio ns.microsoft.co m> wrote in message
news:31******** *************** ***********@mic rosoft.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.ne t> wrote in message
news:u1******** ******@tk2msftn gp13.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**@discussio ns.microsoft.co m> wrote in message
news:31******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:31******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:47******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:31******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:47******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:31******** *************** ***********@mic rosoft.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
2370
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 patch updating worked fine and showed the pictures. Now the pictures no longer show when looking at the source code the absolute path of the file is correct but will not display the image. I tried it on another 2000 adv svr and the script worked...
4
2698
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 c:\inetpub\wwwroot like c:\inetpub\wwwroot\myfldr and use http://localhost/myfldr/myASP.asp
0
246
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 File-->NEW Project, the LOCATION box shows the location http://localhost/WebApplication1 & the project gets created in DEMO folder. There is a BROWSE button next to the LOCATION box but when I browse to another location say C:/InetPub/wwwroot...
4
1072
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 occurred in GDI+. The line causing the problem is outputImage.Save, but I really don't understand why, it works fine if I save the jpeg image in the wwwroot folder or even wwwroot/images but as soon as I make the folder structure any deeper I get...
5
2668
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 placing the .dll file in the bin directory I get the following error message: BC30002: Type 'Quote' is not defined. Adder is in the new namespace I created in the .dll file. I know that the coding is error free. I've check it over numerous times and...
5
2737
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
1006
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 is another file identical only difference is i call it as "s_photos" For thumbnails small pictures. I have the names (ex:Elephant001.jpg)to the mages stored in a database column filename. I am using a datagrid to display the images on the...
2
2272
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 went back to the Windows Explorer, I found out the file folder name was Wong, so I changed it to Wang. Next time, when I tried to open the Wang project, an error message showed that VS can not open the Wong Web page (something like that). ...
76
3004
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
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10600
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10352
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10354
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7642
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3835
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.