About folderPath question?
I had compiled the FileManager item
When i check the link at the default.aspx It entery the BrowseFiles.aspx with the virtual path "/ThePhile/Modules/FileManager" direct.
Why not The folderPath is ThePhile?
I have not changed the code in the BrowseFiles.cs
------------------------------------------------------------
private void Page_Load(object sender, EventArgs e)
{
// extract from the querystring to path to scan
folderPath = Request.Params["Folder"];
// if the folder is not specified, or it is "/" (web server root)
// use the application's root folder as path
if (folderPath == null || folderPath=="/")
folderPath = Request.ApplicationPath.ToString();
// if the folder ends with "/", remove the last /
else if (folderPath.EndsWith("/"))
folderPath = folderPath.Substring(0, folderPath.Length-1);
// write the physical and virtual path
FolderDescription.Text = "Virtual folder: " + folderPath +
"<br>Physical folder: " + Server.MapPath(folderPath);
// actually scan the specified folder
FillFoldersAndFilesTable();
}
|