Forum Moderators: open

Message Too Old, No Replies

visual interdev web project

         

charonlee

5:57 am on Mar 25, 2003 (gmt 0)

10+ Year Member



I need to clarify that I understand how the relative path work, and I also know that how to use the simplest
way to create navigation link. I did create a include file which served as a our main "Navigation Link" and include it
on every page. When there has any changes, just change the include file, it will relect the entire site.
Now, my problem not this.
My problem is :
ok, I have a web-site which I create it under the wwwroot directory (inetpub/wwwroot), I don't have what we call it
new web as in FrontPage and new web project in interdev. The web folder structure is as below:
inetpub/wwwroot/
default.asp
about.asp
feedback.asp..etc
IncludeFolder
connection.asp
navigation.asp
javafunction.js
ImageFolder
pic.jpg
pic2/jpg
folder1
index.asp
file1.asp
file2.asp
file3.asp

folder2
index.asp
file1.asp
file2.asp
file3.asp
folder3
index.asp
file1.asp
file2.asp
file3.asp

so, when I access the site via local machine, i just type :
localhost/
all the web pages (.asp) share a same navigation.asp file. For instance, in the folder1
index.asp, there is a statement <!-- #Include virtual="/include/navigation.asp" -->, as well
as others .asp files.
(Previously, I didn't use Interdev) If I use the Interdev, create a new web project (new web application), then the virtual path of the new web project will be [localhost...] The pysical path will be c:\inetpub\wwwroot\newproject\, So, if I add all the existing files and folders into this new project, then
the link point to the <!-- #Include virtual="/include/navigation.asp" --> will be incorrect , I have to change it into
<!-- #Include virtual="/newproject/include/navigation.asp" --> . For the pages which have image SRC="/imageFolders/pic.jpg" will point to incorrect folder I have to change them into SRC="/newproject/imageFolder/pic.jog".
That is why I want to know if I use interdev and convert my existing web site into the web project, do i need to change the "path or SRC".
I must use Interdev for creating a web project is because i want to set a "multi authoting enviroment" by utilising VSS or FrontPage Source Control.

DO HOPE CAN GET RESPONSE FROM YOU ALL.

Woz

9:55 am on Apr 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The challenge is not with Frontpage or Interdev per se, but rather the way they interact with the local server. I assume you are running WIN98/PWS or Win2K/IIS5. If so then in both cases [localhost...] is the server root, and [localhost...] is but a subweb under the root web.

Therefor, <!-- #Include virtual="/include/navigation.asp" --> looks for the folder "include" under the root web, where as you are wanting it to look under your new project which is as localhost/newproject/.

The only solutions I am aware of are to use relative includes such as

<!-- #Include file="./include/navigation.asp" -->

which can be a pain to keep track of in nested folders,

or to use virtual includes and map them to a folder in the project such as

<!-- #Include virtual="/newproject/include/navigation.asp" --> which will work OK on the local machine. BUT, when you upload you have to remember to make a folder on the online server called newproject and the put you "include" folder in that.

Not very elegant solutions I am afraid, I would also love to here if anyone else has better ideas.

Onya
Woz

aspdaddy

10:53 am on Apr 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have exactly the same problem. I think the #include file is a decent solution but I'd rather be using #include virtual.

The only oher way, which I now use is to work on one web at a time, in the root.

I Have folders named www.mysite.com and just drag the contents into the root before making any changes. That way the sites work locally and live with no code changes or extra folders needed.

Again, not very elegant.