For this chapter's project, I built a simple multipage web site that (1) lets the user look up items in the Library database; and (2) duplicates the Library Statistics report created in Chapter 21, but without the RDLC component. I went ahead and included the completed project in your installed source code directory, in the LibraryWebSite subdirectory. You can open it by locating its directory with the File → Open Web Site menu command in Visual Studio.
As shown in Figure 23-12, the project includes 11 files and two subdirectories.
Figure 23-12. The Library web site project files
Here's a quick rundown of each file and subdirectory:
The directory for all project code that is not code behind for an actual ASP.NET web page. All of your general modules and classes for a project appear here.
A code module with six methods that I stole almost verbatim from the main Library Project's General.vb file. I made just a few changes, mostly to deal with not having the
LibraryDB global variable sitting around with its connection information.
When we started the checked-out-item report earlier in this chapter, we bound a
GridView control to a database query. The
GridView control, like most of the Web Forms controls, can also bind to any class that supports the
IList interface, including the generic collection classes. The classes in this file will be used for instances ...