Folder Path

I have a folder path like this

HRJS (root)

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?
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.

Try "~/Resumes/"

And I advise you to look this:
CamilliaAuthor Commented:
~/resumes doesnt work.Let me look at the link
Since HRJS is the root, /Resumes should work.  You don't list that as being tried.
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

CamilliaAuthor Commented:
i just tried it, i get "Failed to map the path '/Resumes'"
CamilliaAuthor Commented:
In my solution, i dont see "Resumes" folder. I created it thru windows explorer. I wonder if that's the case..
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.
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

HRJS (root)
--- test.aspx
from the hierarchy you gave, if ~/hrTest works, then ~/Job should work, if  it does then your root is JobApplicant.
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)
         string url =Server.MapPath(HttpRuntime.AppDomainAppVirtualPath);

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.
CamilliaAuthor Commented:
thanks, let me try
CamilliaAuthor Commented:
Comes out as this, not sure what this tells me..I put the code in test.aspx which is JobApplicant/Job folder


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.

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.
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

From novice to tech pro — start learning today.