试题详情
- 单项选择题You are developing a Web control. The Web control captures user address information in a Web application. You create a class named AddressControl that inherits from CompositeControl. This control consists of child controls. You need to ensure that the child controls are properly output to the browser. Developers using your control must be able to set the appropriate text for labels. In addition, they must be able to pull user address information from the associated text boxes during postback. What should you do? ()
A、Override the EnsureChildControls method of the base class. Add the child controls to the base container.
B、Override the CreateControlCollection method of the base class. Add the child controls to the ControlCollection class.
C、Override the CreateChildControls method of the base class. Add the child controls to the base container.
D、Override the DataBindChildren method of the base class. Add the child controls to the ControlCollection class.
- C
关注下方微信公众号,在线模考后查看
热门试题