Binding Data to Controls

A key advantage in using the rich set of ASP.NET Web Server controls is that developers can data bind a number of controls to server-side data sources. The data itself can come from various kinds of data sources—databases using ADO.NET, Web services, XML, and so on. The unique combination of data binding and a set of enriched controls is really what makes ASP.NET a pleasure to work with in its capability to rapidly develop and deploy rich applications. For instance, examine the following code snippet, which uses a simple data access class called Employees in the namespace hks to retrieve employee contact information. The Employees class itself is pretty straightforward; utilizing the ADO.NET class library to connect with ...

Get Microsoft® .NET Kick Start 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.