Exercises
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.
Create a new ASP.NET application with a DataGrid, a TextBox, and a CommandButton.
Add a Class Library project to ...
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