For review, Default.aspx is the source code for the Scan Folder button, ListBox, and the button to Save To SQL Server. The code within the Button1_Click... block actually scans the folder and then displays the available image files; that is, the ones that at least ended in .jpg. Then, the code starting with the connection string runs when you want to save the files to SQL Server from the ListBox control.
The complete version of the Default.aspx.cs file for this chapter, including comments, is shown in the following code block:
//using is a directive
//System is a name space
//name space is a collection of features that our needs to run
using System;
using System.Data.SqlClient;
using System.IO;
//public means accessible anywhere
//partial means this class is split over multiple files
//class is a keyword and think of it as the outermost level of grouping
//:System.Web.UI...