O'Reilly logo

Programming Visual Basic 2008 by Tim Patrick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Project

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.

The Library web site project files

Figure 23-12. The Library web site project files

Here's a quick rundown of each file and subdirectory:

App_Code

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.

General.vb

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.

BoundSchemas.vb

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required