Be the first to write a review
Creating a File Management System with File Genie Support
In this article Patrick will show you how to built a simple File Management System in ASP using File Genie and Pure ASP Upload 3. He will first take you through the steps of creating a basic structure in which the information will be displayed and where the navigation will take place. Next he will walk you through creating a form for adding files.
To end this article Patrick will show you a couple of possibilities for adding extra options to this basic File Management System.
Creating the File List
The right column named File List will be filled with an overview of files inside a folder that will be selected from the Folder List on the left. To make this happen, a second Folder List has to be created.
- Start the Folder List Server Behavior under Bindings, Folder List.
- Enter the name for your first Folder List. This tutorial uses the name Files.
- Once again select the main folder that contains all the subfolders to display. In this case media. This setting will be manually changed later to fill this Folder List dynamically.
- Click OK to apply the Folder List Server Behavior.
- Make sure the cursor is placed in the bottom left cell of the table inside the File List column.
- Open the Folder List named Files from the Bindings panel, select Name and click Insert. Move the cursor one cell to the right and insert Size from the Folder List named Files. Repeat this to insert Type and DateLastModified.
Four fields from the Files Folder List have now been added to the table. To make sure all the files in a selected folder are shown eventually, the Folder List Repeater needs to be applied.
- Select the <TR>-tag in which the four fields have been placed.
- Open the Folder List Repeater under Server Behaviors, DMX Zone, File Genie, Folder List Repeater.
- Select the Folder List named Files in the Folder List Name field
- Select All Records for the number of records to show.
- Click OK.
Note: You might want to check the Code View for the presence of a duplicate include code that was added when creating the second Folder List. If the code <!--#include file="ScriptLibrary/incFSClass.asp" --> appears twice, simply delete one instance.
Patrick Julicher
Patrick started developing websites at the age of 25, only using HTML and building simple websites. Through the years his passion for designing and developing grew, and his career moved in that direction in the year 2004, when he decided to try and get a job in ICT and Web Development.
He got this chance at WE ICT, based in Nijmegen, The Netherlands. For the first couple of years he combined network management for customers with creating database-driven websites in ASP. Since 2008 his main work is on the developing part.
While ASP is still his favorite language, he's slowly trying to dive into ASP.NET and discover all of the possibilities.