Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 1st, 2004, 05:47 AM
Authorized User
 
Join Date: Oct 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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();
        }

 
Old November 1st, 2004, 01:04 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The File Manager lives in a subdirectory. It's not in the main folder.

Eric
 
Old November 2nd, 2004, 09:08 PM
Authorized User
 
Join Date: Oct 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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








Similar Threads
Thread Thread Starter Forum Replies Last Post
question maheshraju ASP.NET 2.0 Basics 3 March 13th, 2008 08:54 AM
yes or no question grstad Classic ASP Databases 0 April 14th, 2006 04:37 AM
Question Ashwini Classic ASP Databases 3 January 10th, 2006 07:20 AM
a question gorji C++ Programming 2 August 11th, 2003 07:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.