Challenges Interacting with Databases in ASP.NET 1.0

Visual Studio 2002 (and 2003) made it easy to create queries at design time using the various Command and DataAdapter classes. You could even configure a strongly typed DataSet based on your DataAdapters and bind controls to the DataSet.

However, you could not execute a query or display the results of the query in bound controls without adding your own code. Executing the query required a call to either Command.ExecuteReader or DataAdapter.Fill. Displaying the results of your query in bound controls required a call to the DataBind method on either the page or the desired controls to display the contents of the DataReader or DataSet to which they were bound, even after setting the DataSource

Get Programming Microsoft® ADO.NET 2.0 Core Reference, 2nd Edition 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.