Solved

Best practices in project design

Posted on 2008-10-07
7
215 Views
Last Modified: 2013-11-26
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
Comment
Question by:wilcor14
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 18

Expert Comment

by:David Robitaille
ID: 22661218
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
 

Author Comment

by:wilcor14
ID: 22662503
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
 
LVL 18

Expert Comment

by:David Robitaille
ID: 22662753
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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

Author Comment

by:wilcor14
ID: 22662890
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
 
LVL 18

Accepted Solution

by:
David Robitaille earned 500 total points
ID: 22662925
0
 

Author Closing Comment

by:wilcor14
ID: 31503868
Thanks for the help. Some good info.
0

Featured Post

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question