Search Articles :
 
HyperLink

 
Latest Articles
Using the Wizard control of ASP.NET
Using Site Maps to provide web site navigation
Using Extension Methods
Working with Binary Large Objects (BLOBs) Using SQL Server and ADO.NET
Using LINQ in ASP.NET (Part 4)
Tip: Fetching Random Rows From SQL Server
Using LINQ in ASP.NET (Part 3)
Using LINQ in ASP.NET (Part 2)
Using LINQ in ASP.NET (Part 1)
Getting Started with IIS7 (Part 2)
 
Latest Blog Posts
देवाच्या डाव्या हाती पुस्तक रुपाने प्रकाशित!
योगारूढ
क़र्मयोग आणि नोकरीला कायमचा रामराम
अद्भुत स्वप्न आणि दीक्षा
कुंडलिनी जागृती
गुरुचा शोध
एक विचित्र घटना
Using Extension Methods
Working with Binary Large Objects (BLOBs) Using SQL Server and ADO.NET
Using LINQ in ASP.NET (Part 4)
   

Web Site File Manager

BinaryIntellect Web Site File Manager is a tool for managing files and folders of your web site. Just include the FileManager.aspx in your web site and that's it! You have a complete file manager ready. It supports almost all the file and folder management operations such as folder creation, cut, copy, paste, rename, delete and upload. You also get complete source code of the tool. Developed using ASP.NET 2.0 server controls, ASP.NET AJAX and ASP.NET AJAX Control Toolkit this tool is a must for any web site owner or host.

Features

  • Create new folders
  • Upload files to your web site
  • Cut, copy and paste files and folders
  • Rename files and folders
  • Delete files and folders
  • Smart tips for showing details of file or folder just at the pointer of your mouse
  • Easy navigation
  • Easy to use interface with the help of buttons and shortcut menu
  • Works for IE as well as FireFox
  • Powered by ASP.NET AJAX
  • Uses ASP.NET AJAX Control Toolkit

Known Issues :

When you download a file by clicking on its link a progress message is displayed at the bottom even after the file download is complete. This flaw is because of the asynchronous architecture of UpdatePanel and UpdateProgress controls of ASP.NET AJAX framework. In future we may provide a workaround for it.

System Requirements

  • ASP.NET 2.0
  • ASP.NET AJAX Version 1.0
  • ASP.NET AJAX Control Toolkit
  • JavaScript enabled browser (IE or FireFox)

Installation Instructions

  • Download the associated ZIP file
  • Unzip the contents of the ZIP file in a folder
  • Add FileManager.aspx file to your web site
  • Add markup from Web.config file into your Web.config file
  • Add a reference to ASP.NET AJAX Control Toolkit Assembly

Screen Shot




This page is protected by copyright laws. Copying in any form is strictly prohibited. For Copyright notice and legal terms of use click here.

Protected by Copyscape

Posted On : 24 Jan 2007
Current Rating :
Rate This Article :

About the Author
Bipin Joshi
Bipin Joshi is the proprietor of BinaryIntellect Consulting where he conducts premier training programs on .NET technologies. He wears many hats including software consultant, mentor, prolific author, webmaster, Microsoft MVP and member of ASPInsiders. Having adopted Yoga way of life Bipin also teaches Kriya Yoga to the interested individuals. His detailed profile can be read at his blog. He can also be reached there.


Post your comments

Your Name :

Your Web Site (Optional) :

Subject :

Comments :


Comments
Bug?
The upload file does not work after moving away from root directory, has anyone encountered this problem?
Posted By : Brian Tanner Posted On : 3/9/2007
Re: Bug?
Hi Brian,
It is working fine for me. If you are still facing the problem can you post steps to recreate the problem?
Posted By : Bipin Joshi Posted On : 3/10/2007
upload file problem
Hi Bipin,
The first time you click on 'upload file to this folder" the modalpopup panel shows up fine. But if I move to a subfolder or any other folder say bin, and then click on the "upload file ..." link, this time the panel that pops up is BLACK. That's what I'm still experiencing ... Thanks for your response
Posted By : Brian Tanner Posted On : 3/13/2007
RE: upload file problem
It is working as expected in sub directories also. Not sure why you are facing this problem.
Posted By : Bipin Joshi Posted On : 3/14/2007
possible modifications
Hi Bipin,
This is a great tool! I was wondering whether it could be modified to work as a front end to an ftp location, provided that I have written methods that copy,create,delete etc. to an ftp location.
Posted By : Andrea Posted On : 3/16/2007
Re: possible modifications
Yes. But you need to rewrite the all the file operation related logic. Currently it uses System.IO to deal with files. You can use some FTP library instead. As far as UI is concerned it can still remain almost the same.
Posted By : Bipin Joshi Posted On : 3/17/2007
Panel5
Hi Bipin. Thanks for your previous answer. I am trying to understand the actual code. Assuming I have selected a file, and clicked the TOP "Delete" button (ID="btnDelete"). What first happens is that the PopupExtender comes up to confirm the deletion. If I click "Yes", then the script function "FileManager.Delete()" is called. This will then make a postback to the same page with the parameter "btnDelete", which will make the page think that the event is fired by the "btnDelete" button itself. This will cause the OnClick="btnDelete_Click" to fire; with the respective btnDelete_Click being run.

Where in all this, is Panel5 being used? I'm not understanding its use.
Posted By : Andrea Posted On : 3/21/2007
Re: Panel5
If you right click on the main grid at run time you see a short cut menu. This menu is nothing but Panel5.
Posted By : Bipin Joshi Posted On : 3/22/2007
Great Tool!!
Hi Bipin, its a great tool!
A small suggestion, provide online demo, it would be a good hands-on for users before downloading.
Posted By : Abhijeet K Posted On : 3/22/2007
web developer
Good control, and it solve my lot of problems
Posted By : zainullah Posted On : 3/23/2007
File upload problem/Black Box widget
Bipin,
First, this is a great tool. Thanks! Like Brian, I also see a problem when I try to upload a file. I have seen the problem occur in the root directory, as well as any subdirectories. I've seen it appear in FF 1.5, IE 6 and IE 7. What it looks like is that there is a black box, then several hundred pixels down and to the right, you see part of the actual widget if you maximize your browser window to the full screen.

For reference, I also changed my root directory from PhysicalApplicationPath to "C:\\ServerFolder\\"; in line 156 of the web page. Let me know if you want me to send you a screen print.
Posted By : Rob Posted On : 3/26/2007
File Upload bug fix
I was able to fix the file upload "black box" widget by removing the parameters:
DropShadow="true" BackgroundCssClass="modalBackground"
from the tag:
<cc1:modalpopupextender
on line 1061. The line now reads:
<cc1:modalpopupextender id="Modalpopupextender3" runat="server" TargetControlID="btnUpload" PopupControlID="Panel3" OkControlID="btnPanel3Ok" CancelControlID="btnPanel3Cancel" OnOkScript="FileManager.Upload();" ></cc1:modalpopupextender>

The upload box now appears when I am no longer in the root directory
Posted By : Rob Posted On : 3/26/2007
can't get file manager to load
Culture name 'neutral' is not supported.

what do i have to do to solve this?
thanks
Posted By : charles Posted On : 3/28/2007
Re: can't get file manager to load
This message normally comes for compiled assemblies. The file manager itself doesn't reside in an assembly. So the possibility is that AJAX control Toolit assembly or ASP.NET AJAX Extensions assembly are giving this message. Are you sure that you are using the final version of AJAX control toolkit and ASP.NET AJAX Extensions?
Posted By : Bipin Joshi Posted On : 3/29/2007
Bug!!??
when i click on the file , it doesn't work ... i can't show file or download it!
how can i download file with click on the URL ?!
Posted By : Barbod Posted On : 4/3/2007
Re: Bug!!??
Works perfectly. No problem here. Which type of file you are clicking on? If it is config file or global.asax then web server will deny access.
Posted By : Bipin Joshi Posted On : 4/4/2007
setting the root directory
Is there a way to have the default directory be another directory than the one it is in? I would like to have setup like

website/admin/FileManager.aspx <--- file manager
website/images/ <--- where file manager is set to edit

is there a setting to do this? or would it require a mod?


Posted By : russ Posted On : 4/10/2007
Re: setting the root directory
Try calling FileSystemManager.SetRootPath(some_path) method in Page_Load. It should change the path globally for all operations.
Posted By : Bipin Joshi Posted On : 4/11/2007
root directory is changed, now how to get the links to work
I have updated the path in the FileSystemManager. Everything works fine for managing files, but now when acutally clicking a file to view the web path is incorrect. Is there also a way to set the root web path?
Posted By : russ Posted On : 4/17/2007
Re: root directory is changed, now how to get the links to work
You may need to modify GridView1_RowCommand event handler as per your requirement. The else part does the job of redirecting to the files.
Posted By : Bipin Joshi Posted On : 4/18/2007
Change link handler
hi Bipin,
I like your file browsing tool. Can you tell me where i can access the code? I have visual web developer and when i open the .dll file I cannot find where the code sits.

cheers,
George.
Posted By : George Palframan Posted On : 5/31/2007
Re: Change link handler
The complete source code of the file manager is within the .aspx file itself. Just switch to HTML source view and you will get all the code. The source code of AJAX Control Toolkit can be obtained from its download site (CodePlex).
Posted By : Bipin Joshi Posted On : 6/1/2007
Flicker Problem with File Manager
When I mouse over any file, the information is displayed, but it flickers wildly. Other than that, and the fake shadow jumping out of place, it works great.

Any suggestions? Thanks.
Posted By : Fallon Massey Posted On : 6/27/2007
Re: Flicker Problem with File Manager
Which browser you are using? You may try introduction delay in the method that shows the panel. The shadow thing is easy to correct just set the appropriate property of modal dialog extender to false.
Posted By : Bipin Joshi Posted On : 6/28/2007
New Window for Files
Hi all,
I would like when opening a file (like an image or pdf) that a new browser window be opened. This turned out to be something not simple at all since you're inside an update panel (which refreshes itself only & not the whole page); in addition to the fact that the page path is determined at the server (while opening a new window is something only a client browser would do); any help on doing that??
Posted By : Mohamad Majzoub Posted On : 7/15/2007
how to Upload big file
This is a great tool!
i want to know, how will i upload big file (>200mb)
Posted By : Moktarul Posted On : 8/23/2007
Re: how to Upload big file
Set maxRequestLength attribute of httpRuntime tag in the config file to the required value. By default it is 4096 KB.
Posted By : Bipin Joshi Posted On : 8/23/2007
Master Page Problem
Hi. I'm using IE 6.0 every thing works fine exept
1- Error On page when i use it in master pages.
2- when u click on a folder and do not move ur mouse "Panel6" will be visible at top of page and shows the properties of selected folder

Please Reply

Thanks for every thing
Posted By : Farzad Posted On : 11/18/2007
.NET 3.0 and 3.5
After upgrading more than one system with the latest .NET tools I had problems getting this code to work correctly.
The biggest problem was getting it compile. I received errors regarding the use of the List type.

I finally corrected the errors by adding this line to the file:
<%@ Import Namespace = "System.Collections.Generic" %>

Hope this helps someone else.
Posted By : Rhoc Posted On : 1/18/2008
Panels overlapping file tables
When I open the page panels 4 and 5 (and maybe others) are overlapping the file list gridview. Is that a known issue or maybe an issue when using .Net 3.5?
Posted By : Anonymous Posted On : 4/8/2008
Security for RootFolder
I tried using the SetRootPath method of the FileSystemManager, but the security settings don't seem to allow this. That makes sense, because it would allow you out of the sandbox of the site itself. I need the function, however, of simply appending the RootPath to be a folder below the application itself. Example: FileManager.aspx sits on the Root. "ProjectFiles" is a folder at the same level. This way the user couldn't accidentally delete the very application running. Could there be a method to append or simply use a string defining the sub-folder? Thanks and Namaste.
Posted By : Brad Tompkins Posted On : 5/21/2008
WONDERFUL!
I can say no more! Too wonderful
Thanks very much
And i always expect an new version for this application
Posted By : BAO Posted On : 6/16/2008
Copyright (C) BinaryIntellect Consulting. All rights reserved.
Contact Us
Read Terms Of Use
Windows Server Hosting by ORCS Web