• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

Best practices in project design

I have a project called CS that I am considering, for simplicity and maintenance purposes, rearranging all the images, .js files, includes etc. I am considering placing them all in the root directory under the project. Other pages with these items in folders underneath this project folder would then point to the root for images, includes etc.
Is this a good way of doing things or should I create image, include folders in these folders underneath the root? I can refer to the root folder by http://localhost/CS/images or by using "/images for example but when I publish the project, CS will be the URL and in my development environment, I can see the images so how do I set up my project to not display the CS and just have http://localhost/images be displayed in my development environment. This should then transfer once in production right? Thanks for any guidance.
0
wilcor14
Asked:
wilcor14
  • 4
  • 3
1 Solution
 
David RobitailleAnalyst ProgrammerCommented:
should I create image, include folders in these folders underneath the root?
absolutely
instead of using "http://localhost/images" you could use "~/images" for server control...
also take a look at this
http://www.asp101.com/resources/paths.asp 
 
0
 
wilcor14Author Commented:
davrob60, thanks. That article was helpful. My project is set up a bit differently. Someone else set it up for me. The physcal location of the files are under C:\Source2005.Net\CS How would you suggest I proceed?
0
 
David RobitailleAnalyst ProgrammerCommented:
thats the magic of the ~ . You dont have to bother with the  "http://localhost/CS/" part, it will aways be Corrected according to the "root" of your virtual directory.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
wilcor14Author Commented:
Thanks again. It works great within the image tag but does it work within the Body tag for Background? I tried it but not having success with that one.
0
 
David RobitailleAnalyst ProgrammerCommented:
0
 
wilcor14Author Commented:
Thanks for the help. Some good info.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now