Exercises

  1. In the TestConsumer project you created earlier today, you didn't implement code for all the methods and properties you wrote in the myComponent Class Library application. Do the following to finish off the application:

    • In the Form_Load event, write code that calls the GetAuthors method and fill the DataGrid on the form with the results. This demonstrates how to pass ADO.NET data from a component to a client application.

    • In the DoName_Click event, add code that sets the FirstName and LastName properties and then display the FullName property in a MessageBox. This demonstrates how to set and retrieve properties in a component.

  2. Create a new ASP.NET application with a DataGrid, a TextBox, and a CommandButton.

    Add a Class Library project to ...

Get Sams Teach Yourself Visual Studio® .NET 2003 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.