Link to home
Start Free TrialLog in
Avatar of Camillia
CamilliaFlag for United States of America

asked on

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?
SOLUTION
Avatar of lazyberezovsky
lazyberezovsky
Flag of Belarus image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Camillia

ASKER

~/resumes doesnt work.Let me look at the link
Avatar of nole172
nole172

Since HRJS is the root, /Resumes should work.  You don't list that as being tried.
i just tried it, i get "Failed to map the path '/Resumes'"
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.
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)
-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.
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);
            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.
thanks, let me try
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
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you're right, Resumes is outside, i dont see it as part of the solution. Thanks for sticking with this.