Subject: About folderPath question?
Posted By: allanhu Post Date: 11/1/2004 4:47:42 AM
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();
        }

Reply By: englere Reply Date: 11/1/2004 12:04:01 PM
The File Manager lives in a subdirectory. It's not in the main folder.

Eric
Reply By: allanhu Reply Date: 11/2/2004 8:08:33 PM
I am sure it lives in a subdirectory.

It is saved  as a item. but i don't add it as a item to the solution




Go to topic 21564

Return to index page 726
Return to index page 725
Return to index page 724
Return to index page 723
Return to index page 722
Return to index page 721
Return to index page 720
Return to index page 719
Return to index page 718
Return to index page 717