In implementing a master page based template across the site, this testing page or its dependencies may have been moved. Therefore, some of the references have been changed possibly including master page friendly techniques like application root relative references. They are not original, though the app root reference in the AccessDataSource tag is original. I thought it wasn't working for a second, until I realized I'd rebuilt the database for a different purpose and it no longer had any roles to pull in for this page. Once I added them back into the DB, this worked beautifully with the original code.
[chroniclemaster1, 2008/11/08]
Here we are demonstrating our first basic usage of database data. We're using an Access database to store the information. While MS SQL server is more easily and commonly used with .NET web applications, only MySQL and Access are supported by our webhost. ...Without shelling out a lot more money anyway. Since MySQL does not interface very conveniently with Microsoft technologies and with MS SQL out of the running, that left only one choice. Ummm... hurray, we're ahhhh... working with MS Access.
Populating A GridView
An Access database is file, a special kind of file that stores information in the most retrievable form possible, well, at least in theory. There are technologies like .zip files and other types of archive files that compress more data into a smaller file, but a database only compacts information in ways that still allow fast access. The database does nothing else. It serves as a kind of library or archive for information, literally a base for all your data.
When a database is plugged into an ASP.NET application, it becomes the hub of a powerful tool. The application code tells the server what to do, the database provides the server with potentially vast quantities of information with which to work. The combination produces some of the most powerful web applications running today. Database applications can handle projects as simple as storing which Girl Scout is bringing what food to a potluck, or as complicated as providing real time updates for a world wide distribution system that tracks shipments and generates work orders based on complicated sets of rules. This... This is pretty basic...
| PatientID | Name |
| 1 | Hotel Calls |
| 2 | Katy Peril |
| 3 | Mrs. Roberts |
| 4 | Mr. Johns |
| 5 | Kinko's |
| 6 | Mr. Wilson |
| 7 | Mrs. Le Calvez |
| 8 | Mrs. Haversham |
| 9 | Mr. Grissom |
| 10 | Bill P. |
| 11 | Mr. Johnson |
| 12 | June Beatermeyer |
| 13 | Nicholas Nickelby |
| 15 | Willa Cather |
| 16 | Desiree Cloud |
| 17 | Bobby McGee |
| 19 | Minerva Stanley |
| 20 | Miles Davis |
| 27 | Asa |
| 28 | Alex Anderson |
| 29 | Willie Nelson |
| 30 | Willie Nelson |
| 31 | Lisa Biesele |
| 32 | Dora the Explorer |
| 33 | Mouse, Mickey |
Skip to Main Points