Be the first to write a review
Creating a File Management System with File Genie - part 2
Enhance the options of the simple File Management System
In this article Patrick will show you how to enhance the options of the simple File Management System that was created in the article Creating a File Management System with File Genie – part 1. First he will show you how to give the File Management System the Explorer-style, that could be seen in the first article. Next he will hide the Quick-Add form, when no folder has been selected. After that the header will be edited, in such a way that the name of the selected folder will appear in the header of the File List.
To end this article Patrick will walk you through a couple of steps to enable sorting of all columns.
Changing the Delete Link
Up until now a text link was you to be able to delete a specific file from a folder. Now that the layout was giving an Explorer-like look, the Delete link will be edited so that an image is used.
- Make sure you have an image ready for use. In this article the image delete.png is used. In this article it is placed in a folder called images and is available from the Source Code provided with this article.
- Remove the Delete link from the File List.
- Make sure the cursor is placed where the image should be inserted.
- From the menu select Insert, Image.
- Browse to the location where the image is at.
- Select the desired image and click OK.
- If the Image Tag Accessibility Attributes windows appears, typ Delete File in the Alternate Text field. Leave the Long description empty and click OK.
- The image is now inserted in the page. Make sure it is selected.
- From the Property Inspector, type 0 in the Border field.
- If the Image Tag Accessibility Attributes windows did not appear before, also type Delete File in the Alt field.
- Again, make sure the image is selected.
- Open File Delete under Server Behaviors, DMX Zone, File Genie, File Delete.
- Make sure the Folder List named Files is selected in the Folder List Name field.
- The Action Link should read Selection: "<img src="images/delete.png" alt="Delete File" width="20" height="20" border="0" />".
- Click OK.
Save and upload the page. Also upload the image that was used for the Delete link. When viewing the page with a folder selected, the Delete link now shows the image that was entered.
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.