Camillia
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Since HRJS is the root, /Resumes should work. You don't list that as being tried.
ASKER
i just tried it, i get "Failed to map the path '/Resumes'"
ASKER
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.
<a href="~/resumes" runat="server">Resumes</a>
PS: without the runat tag, the tilde wont work.
ASKER
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>
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.
-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.
ASKER
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)
HRJS (root)
-Resumes (folder)
-JobApplicant (folder)
--hrTest (folder under jobapplicant)
--Job (folder under jobApplicant)
---test.aspx (page in Job folder)
string url =Server.MapPath(HttpRuntim e.AppDomai nAppVirtua lPath);
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.
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.
ASKER
thanks, let me try
ASKER
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\J obApplican t
C:\InternalProjects\HRJS\J
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
you're right, Resumes is outside, i dont see it as part of the solution. Thanks for sticking with this.
ASKER