943,741 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 3317
  • ASP.NET RSS
Apr 14th, 2008
0

How to link to a file in other folder?

Expand 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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
C#Novice is offline Offline
11 posts
since Aug 2007
Apr 15th, 2008
0

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

Click to Expand / Collapse  Quote originally posted by C#Novice ...
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!
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
culebrin is offline Offline
62 posts
since Aug 2007
Apr 16th, 2008
0

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

hey thankz.. it really helped.. i used the relative path method..it works!!
Thnx once again!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
C#Novice is offline Offline
11 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: get BLOB from database based on dropdown list selected value
Next Thread in ASP.NET Forum Timeline: Convert Dates into another culture than default





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC