ASP.NET
  Home arrow ASP.NET arrow Slapping Together a Photo Gallery in ASP.N...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Slapping Together a Photo Gallery in ASP.NET Part II
By: Harish Kamath
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 22
    2005-04-11

    Table of Contents:
  • Slapping Together a Photo Gallery in ASP.NET Part II
  • Working with Files
  • Of Albums and Photos
  • Two Sides of a Coin
  • My Gallery
  • My Gallery - Demystified
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Slapping Together a Photo Gallery in ASP.NET Part II


    (Page 1 of 7 )

    In the first part of this two-part series, I initiated the task of building my "Photo Gallery" by talking about the Directory() and DirectoryInfo() objects. Today, I'll take this exercise to its logical conclusion by introducing their counterparts, i.e. the File() and FileInfo() objects, and developing an ASP.NET script that uses all of these .NET objects to display my photo collection.

    By now, I'm pretty sure that you've recovered from the dreaded "back-to-work-from-a-vacation" syndrome and are eager to test run the "Photo Gallery" application that I promised to put together in the last article.

    Well, not so fast!

    First, let me quickly review the topics covered earlier: I began the article with an outline of the folder structure required for my "Photo Gallery" application. Then, I introduced the Directory() and DirectoryInfo() objects, which allow you to traverse folders on the server. But that was only half of the story.

    Today, I hope to complete the picture by demonstrating the capabilities of the File() and the FileInfo() objects, followed by the grand finale - the ASP.NET script that implements my simple, no-frills "Photo Gallery" application.

    A little note before I proceed: if you are looking for a tutorial on reading files or even creating new ones, I'd suggest that you look elsewhere. To be frank, these topics are vast and deserve to be treated as a separate point of discussion.

    Enough said, it's time - as they say - to walk the walk!

    More ASP.NET Articles
    More By Harish Kamath


     

    ASP.NET ARTICLES

    - Adding Content to a Static ASP.NET Website
    - Building a Static ASP.NET Website in a Basic...
    - Develop Your First ASP.NET Website with Visu...
    - Run ASP.NET in Windows XP Home with Cassini ...
    - How to Test a Web Application
    - How to Add Code and Validation Controls to a...
    - Working in Source and Split Views to Build a...
    - How to Build a Web Form for a One-Page Web A...
    - How to Develop a One-Page Web Application
    - An ASP.NET Web Application in Action
    - Developing ASP.NET Web Applications
    - An Introduction to ASP.NET Web Programming
    - Introduction to the ADO.NET Entity Framework...
    - Completing an In-Text Advertising System und...
    - Programming an In-Text Advertising System un...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek