ADO.NET in Code

Although you have completed a functional ADO.NET application, you've only written a handful of lines of code to make it functional. As mentioned previously, this is due to the work of the various wizards, particularly the Data Adapter Configuration Wizard, and the property dialogs. This section will briefly look at selected sections of the ADO.NET code that was written so you can begin to get familiar with what's under the covers in preparation for the days ahead.

All the code that will be discussed was placed in the private InitializeComponent method of WebForm1 class in the WebForm1.aspx.cs file. This method is called in the OnInit method of the WebForm1 class, itself called by ASP.NET the first time the page is loaded when ...

Get Sams Teach Yourself ADO.NET in 21 Days 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.