First C# project
March 11, 2008
Finished up primary coding/debugging of my first C# project today. It's a stand-alone implementation of the image-browsing utility I created for Dyna:Web.
(You can down load the code from the link at the bottom of this item.)
The app -- named ImageExplorer -- does what the name implies: it lets users (presumably administrative users) of a web site browse through images on a folder-by-folder basis. (The root folder for browsing is defined in code.) It also supports uploads and deletes.
Image thumbnail view in ImageExlorer
The key feature of the app, however, is that it provides both a text (file name) view of the images and a thumbnail view (using the ASP.Net Multiview control).
Doing the VB-C# conversion was a good thing because it let me clean up code that was written in 2002-03 and that was not all that concise. Also, the original version of the utility was geared to using image references stored in a database table -- an approach I've since abandoned.
The CSS for the app gave me fits -- updating it to support both IE and Firefox. The key issue(s) were displaying a fixed header row for the grid (asp:gridview control) with the grid itself scrolling within a DIV below that.
In the end, I decided to stay away from browser-specific CSS hacks and just present the grids as best as possible.
The actual C# code was fairly straight-forward; as expected my C background and years of working with the .Net framework made the C# learning curve pretty flat. Of course, Visual Studio's IDE (Intellisense, mainly) helps a lot.
Anyway, I've now got a handle on C# coding and feel comfortable with it.
The ImageExplorer code is a free, unlicensed download. Enjoy.
Download ImageExplorer here (be sure to read the developer notes file -- DevNotes.txt)