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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access