In my personal dev environment, I have an asp.net application on it's own ip (127.0.0.2), thus root is always "/"
On the server, it's in an app, which comes across as "servername.com/appname/"
I'm building up hyperlinks to files in strings and can't seem to parse out the filenames properly on the server. They come out with the "servername.com" but not the appname part.
What am I missing?
I call a web helper class (shown below) to get the paths for a menu:
public static string getOnsiteAdministratorMenu()
{
string syllabusSearchURL = "/admin/syllabus_Search.aspx";
return "<ul id=\"nav\"><li><a href=\"EnrollmentLookup.aspx\">Enrollment Search</a></li>" +
"<li><a href=\"OnsiteEnrollment_AddNew.aspx\">Enrollment Add</a></li>" +
"<li><a href=\"ViewSingleDocument.aspx\">Document Search</a></li>" +
"<li><a href=\"/Admin/SyllabusAdd.aspx\">Add Syllabus</a></li>" +
"<li><a href=\"" + syllabusSearchURL + "\">Edit Syllabus</a></li>" +
"<li><a href=\"Course_add.aspx\">Add Course</a></li>" +
"<li><a href=\"Group_add.aspx\">Add Group</a></li>" +
"<li><a href=\"GroupSearch.aspx\">Groups</a></li>" +
"<li><a href=\"Admin/Admin_GradeChanges.aspx\">Audit Grade Changes</a></li></ul>";
}