Folder Path


I have a folder path like this


HRJS (root)
 Resumes
 JobApplicant
   Job
     test.aspx
   hrTest


In test.aspx, i have a link : ~/hrtest. This works
I want it to be "Resumes". I've tried ../Resumes, ../../Resumes, ../HRJS/Resumes

none works. What would be the correct path?
LVL 8
CamilliaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lazyberezovskyCommented:
Try "~/Resumes/"

And I advise you to look this:
http://www.informit.com/articles/article.aspx?p=101145
0
CamilliaAuthor Commented:
~/resumes doesnt work.Let me look at the link
0
nole172Commented:
Since HRJS is the root, /Resumes should work.  You don't list that as being tried.
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

CamilliaAuthor Commented:
i just tried it, i get "Failed to map the path '/Resumes'"
0
CamilliaAuthor Commented:
In my solution, i dont see "Resumes" folder. I created it thru windows explorer. I wonder if that's the case..
0
robastaCommented:
you can add a runat="server" and use  the tilde (~) for relative paths e.g.
<a href="~/resumes" runat="server">Resumes</a>

PS: without the runat tag, the tilde wont work.
0
CamilliaAuthor Commented:
ah, i'm using RadUpload control..this is what I have but i understand what you're saying. When I have ~hrTest, that works but not when i have ~/Resumes


<telerik:RadUpload runat="server"  OnValidatingFile="ruResumeUpload_OnValidatingFile" OnFileExists="ruResumeUpload_FileExists"   Skin="Vista"   MaxFileInputsCount="1" InitialFileInputsCount="1"
                     ControlObjectsVisibility="ClearButtons" AllowedFileExtensions=".doc,.docx,.pdf,.odt,.rtf" 
                     TargetFolder="~/hrtest" OverwriteExistingFiles="true"
                      ID="ruResumeUpload"  ></telerik:RadUpload>

Open in new window

0
robastaCommented:
HRJS (root)
-Resumes
-JobApplicant
--Job
--- test.aspx
--hrTest
-----------------------------------
from the hierarchy you gave, if ~/hrTest works, then ~/Job should work, if  it does then your root is JobApplicant.
0
CamilliaAuthor Commented:
let me see, I think you're right, i missed JobApplicant folder.So how do backout and go from Job folder to Resumes?

HRJS (root)
-Resumes (folder)
-JobApplicant (folder)
--hrTest (folder under jobapplicant)
--Job (folder under jobApplicant)
---test.aspx (page in Job folder)
0
robastaCommented:
         string url =Server.MapPath(HttpRuntime.AppDomainAppVirtualPath);
            Response.Write(url);


Add this code to any Page_load and run it, it will help you identify the site root. I doubt that HRJS is the site root, maybe the Virtual path setting on the Web tab of the Site properties has been modified.
0
CamilliaAuthor Commented:
thanks, let me try
0
CamilliaAuthor Commented:
Comes out as this, not sure what this tells me..I put the code in test.aspx which is JobApplicant/Job folder

C:\InternalProjects\HRJS\JobApplicant
0
robastaCommented:

JobApplicant is your root directory. If you need to access Resumes you'll have to move it under JobApplicant.

I am guessing that HRJS is your solution directory, and JobApplicant is your project directory.

Inside Visual Studio, on the Solution Explorer, Click the Second Icon at the top ("Show All Files"), This will show you all the files and directories taht are accessible to your application/site.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CamilliaAuthor Commented:
you're right, Resumes is outside, i dont see it as part of the solution. Thanks for sticking with this.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

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.