Displaying Database Data in an ASP.NET Web Page

In the last hour we looked at the four things that need to be done to display database information in an ASP.NET Web page, as follows:

1.
Connect to the database whose data interests you.
2.
Issue a SELECT SQL query.
3.
Retrieve the results from the database.
4.
Display the results.

The last hour examined using the Web Matrix Project's SELECT Data Method Code Builder to have the source code for steps 1 through 3 performed automatically. That is, the function created by the Code Builder contains the source code to connect to the specified database, issue the proper SQL SELECT statement, and retrieve the database results, storing them in either a DataSet or a DataReader. Step 4, displaying the database ...

Get SAMS Teach Yourself ASP.NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.