How to link to a file in other folder?

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2007
Posts: 10
Reputation: C#Novice is an unknown quantity at this point 
Solved Threads: 0
C#Novice C#Novice is offline Offline
Newbie Poster

How to link to a file in other folder?

 
0
  #1
Apr 14th, 2008
Hi All,
I m working on a project that has different sub-projects. I would like to include a link to a file that is placed in another folder. For ex. My file whose path is ProjB/FolderB/FileB.asp --I want to write a line of code that will enable me to link to a file whose path is ProjA/FolderA/FileA.asp.
Can I achieve this using the navigateURL command?How?
Thanks in advance.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 56
Reputation: culebrin is an unknown quantity at this point 
Solved Threads: 1
culebrin culebrin is offline Offline
Junior Poster in Training

Re: How to link to a file in other folder?

 
0
  #2
Apr 15th, 2008
Originally Posted by C#Novice View Post
Hi All,
I m working on a project that has different sub-projects. I would like to include a link to a file that is placed in another folder. For ex. My file whose path is ProjB/FolderB/FileB.asp --I want to write a line of code that will enable me to link to a file whose path is ProjA/FolderA/FileA.asp.
Can I achieve this using the navigateURL command?How?
Thanks in advance.
Hi,

I guess you have two options, make an Absolute Path or a Relative Path

In the absolute path, you have to put the entire URL on the link, like, http://domainname/ProjB/FolderB/FileB.asp

In the relative path, you have make a "navigation" through the folders before you can reach the file, like, if you are in ProjB/FolderB/FileB.asp and you have to reach ProjA/FolderA/FileA.asp (assuming that both are in the same server) you have to do a "../../ProjA/FolderA/FileA.asp"

Try this and post back... good luck!
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 10
Reputation: C#Novice is an unknown quantity at this point 
Solved Threads: 0
C#Novice C#Novice is offline Offline
Newbie Poster

Re: How to link to a file in other folder?

 
0
  #3
Apr 16th, 2008
hey thankz.. it really helped.. i used the relative path method..it works!!
Thnx once again!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC