Question:You have two TextBox controls inside your user control. You want to allow a developer using the user control to initialize, read, and modify the Text property of these controls. What step should you take? 

A Add a constructor to the user control. The constructor should take parameters for each of the TextBox.Text properties. It will then set these parameter values appropriately. 

B Create properties on the user control that allow users to get and set the Text property of each TextBox control. 

C You don't need to do anything. Controls added to a user control, by default, expose their default property. 

D Add code to the Init method of the user control. This code should raise an event. The page that hosts the control can then use this event to set the TextBox.Text properties accordingly. 

+ Answer
+ Report
Total Preview: 1150

Copyright © 2024. Powered by Intellect Software Ltd