
504 Chapter 10 • Developing Web Applications
Protected Sub MyCompositeControl_Click(ByVal Sender As
System.Object,
ByVal e As System.EventArgs) Handles
MyCompositeControl.Click
lblTest.Text = MyCompositeControl.CustomerID
End Sub
When the button is clicked, the preceding code changes the text of
the label to the Customer ID entered by the user.
10. Press F5 to run the program. Now when you click the button, you will
see that the text on the label changes to whatever you have entered.
We can even add the validation controls to validate the user input, which we
used in Exercise 10.5.As an assignment, try adding validation controls to this
composite contr ...