You develop a Web control. The Web control consists of labels and associated text boxes.You need to ensure that the Web control has both toolbox and visual designer support. What should you do?()A. Add a Web Control Library project to your solution. Defin

题目
You develop a Web control. The Web control consists of labels and associated text boxes.You need to ensure that the Web control has both toolbox and visual designer support. What should you do?()

A. Add a Web Control Library project to your solution. Define a class that inherits from CompositeControl.

B. Add a Windows Control Library project to your solution. Define a class that inherits from UserControl.

C. Add a Web User Control to your project. Define a class that inherits from UserControl.

D. Add a Mobile Web User Control to your project. Define a class that inherits from MobileUserControl.


相似考题
更多“You develop a Web control. The Web control consists of labels and associated text boxes.You need to ensure that the Web control has both toolbox and visual designer support. What should you do?() ”相关问题
  • 第1题:

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

    A.控件从System.Web.UI.Control继承。

    B.控件从System.Web.UI.WebControls.CompositeControl继承.

    C.控件从System.Web.UI.WebControls.WebControl继承.

    D.控件从System.Web.UI.UserControl继承


    参考答案:B

  • 第2题:

    你使用拖放控件到 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 标记


    参考答案:B, C

  • 第3题:

    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.


    参考答案:B

  • 第4题:

    你正在创建一个可以供 Web 应用使用的模板化 Web 控件。你需要在没有编译的情况下能够把此控件增加到你的 Web 页面上,你应该如何做?()

    A.确保Web控件从WebControl类继承。

    B.确保Web控件从Control类继承.

    C.确保Web控件从CompositeControl类继承.

    D.确保Web控件从UserControl类继承.


    参考答案:D

  • 第5题:

    VS.net 中支持 web.control有哪几个,分页的原理是什么?优缺点又是什么?如果不依赖web control 数据量大时如何实现分页?


    正确答案:
     

  • 第6题:

    You look() What()you()?

    Atire;did;do

    Btiring;have;done

    Ctired;do;do

    Dtired;have;been doing


    D