Consolidating images in one folder in wwwroot

Discussion in 'ASP .Net' started by =?Utf-8?B?cG11ZA==?=, Apr 5, 2005.

  1. 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
     
    =?Utf-8?B?cG11ZA==?=, Apr 5, 2005
    #1
    1. Advertising

  2. 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" <> wrote in message
    news:...
    > 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
     
    Steve C. Orr [MVP, MCSD], Apr 5, 2005
    #2
    1. Advertising

  3. =?Utf-8?B?cG11ZA==?=

    Bruce Barker Guest

    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]" <> wrote in message
    news:u1$...
    > 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" <> wrote in message
    > news:...
    >> 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

    >
    >
     
    Bruce Barker, Apr 5, 2005
    #3
  4. 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" <> wrote in message
    > news:...
    > > 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

    >
    >
    >
     
    =?Utf-8?B?cG11ZA==?=, Apr 5, 2005
    #4
  5. No, you don't need to copy those.

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://SteveOrr.net


    "pmud" <> wrote in message
    news:...
    > 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" <> wrote in message
    >> news:...
    >> > 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

    >>
    >>
    >>
     
    Steve C. Orr [MVP, MCSD], Apr 5, 2005
    #5
  6. 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" <> wrote in message
    > news:...
    > > 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" <> wrote in message
    > >> news:...
    > >> > 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
    > >>
    > >>
    > >>

    >
    >
    >
     
    =?Utf-8?B?cG11ZA==?=, Apr 5, 2005
    #6
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guadala Harry

    Consolidating Sites - DNS Implications

    Guadala Harry, Feb 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    349
    bruce barker
    Feb 6, 2004
  2. =?Utf-8?B?VGFpIE1pbmc=?=

    ASP.Net outside wwwroot folder?

    =?Utf-8?B?VGFpIE1pbmc=?=, Apr 29, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    652
  3. lbrtchx
    Replies:
    1
    Views:
    368
  4. Dave
    Replies:
    26
    Views:
    688
    Tom Forsmo
    Oct 18, 2006
  5. madhu
    Replies:
    0
    Views:
    431
    madhu
    Oct 5, 2006
Loading...

Share This Page