7.1. Our First Web Forms Program

Our first Web page represents an employee phone directory. It is pictured in Figure 7.1. The employee data is pulled out of a SQL database and displayed within a DataGrid control.[2] To illustrate selection within the data grid, our page pretends to dial the selected employee. To illustrate the use of a check box, the page optionally initiates a video stream as well. (The dial-up and video stream support are generously left as exercises for the reader.) The selected employee is highlighted within the data grid. In addition, the person selected, the associated phone number, and whether the video option has been checked are displayed within the text of a label—for example,

[2] The database is the NorthWind sample ...

Get C# Primer: A Practical Approach 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.