This brings us to the conclusion of the first part of this two part series. Today, I began with the intention of creating a no-frills "Photo Gallery" application. To that end, I've already shown you how to organize the photographs on the server. This was followed by an introduction to the Directory() and DirectorInfo() objects; the main difference between these two counterparts of the System.IO .NET assembly is that the former contains mostly static methods whereas the latter does not. For the sake of completeness, I have also shown you how to create and delete folder(s) on the server in your ASP.NET scripts.
In the second part of the tutorial, I shall concentrate on files. You should not be surprised to learn that once again, we have to deal with two different objects: the File() and the FileInfo() objects. Finally, I will demonstrate my no-frills "Photo Gallery" application - something that all of you have been waiting for with bated breath.
Note: All examples in this article have been tested on Windows 2000 Server with ASP.NET version 1.1 . Examples are illustrative only, and are not meant for a production environment. YMMV!
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |