网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

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.


参考答案

更多 “ 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 classC. 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. ” 相关考题
考题 IBM给出的电子商务形象公式是() A.EB=Web+BusinessB.EC=Information+BusinessC.EB=Web+IT+BusinessD.EB=Information+Web+Business

考题 If _______ want to stay in good shape, you should do more exercise. A.weB.peopleC.oneD.you

考题 你正在创建一个自定义控件。控件的 UI 必须要包含几个文本框和两个按钮。要求,此控件在全局程序级缓冲中有效并且可供多个 Web 应用同时使用。为了用最少的代码实现这些功能,你该如何做?() A.控件从System.Web.UI.Control继承。B.控件从System.Web.UI.WebControls.CompositeControl继承.C.控件从System.Web.UI.WebControls.WebControl继承.D.控件从System.Web.UI.UserControl继承

考题 你正在创建一个可以供 Web 应用使用的模板化 Web 控件。你需要在没有编译的情况下能够把此控件增加到你的 Web 页面上,你应该如何做?() A.确保Web控件从WebControl类继承。B.确保Web控件从Control类继承.C.确保Web控件从CompositeControl类继承.D.确保Web控件从UserControl类继承.

考题 你使用拖放控件到 Visual Studio 2005 页面设计器的方式,给 ASP.NET Web 窗体增加了一个用户控件 MyControl。请问,Visual Studio 给你的 Web 窗体做了那些变化?() A.为 Web 窗体的 body 增加了control id=MyControl1 Runat=server /元素。B.为 Web 窗体增加了@ Register 标记。C.为 Web 窗体的 body 增加了uc1:MyControl id=MyControl1 Runat=server / 元素。D.在 Web 窗体的head节增加了meta control=MyControl 元素。E.为 Web 窗体增加了@ Control 标记

考题 配置BPM引擎的管理端口应该修改哪个配置文件() A.uddi-config.xmlB.user-config.xmlC.user-local-config.xmlD.weB.xml

考题 You are creating a custom control. The UI of the control must contain several text boxes and two buttons. The control must be available in the global assembly cache for reuse across multiple Web applications. You need to achieve this functionality by using the minimum amount of code.What should you do? ()A. Create a control that derives from System.Web.UI.Control.B. Create a control that derives from System.Web.UI.WebControls.CompositeControl.C. Create a control that derives from System.Web.UI.WebControls.WebControl.D. Create a control that derives from System.Web.UI.UserControl.

考题 关于 web 标准以下说法正确的是()。A.Web 标准是一个复杂的概念集合,它由一系列标准组成B.这些标准全部都由 W3C 起草与发布C.Web 标准可以分为 3 个方面D.Web 标准里的表现标准语言主要包括 CSS

考题 关于Web标准的描述,下列说法正确的是()A.Web标准需要浏览器开发商和站点开发商共同遵守B.Web标准由W3C与其他标准化组织共同制定C.Web标准就是HTML标准、CSS标准和JS标准D.Web标准是为HTML5推出的新标准

考题 如果要修改Tomcat访问端口号,需要修改以下哪个文件?A.web.xmlB.server.xmlC.user.xmlD.config.xml