You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()A、Ensure that the Web control inherits from the

题目

You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()

  • A、Ensure that the Web control inherits from the WebControl class.
  • B、Ensure that the Web control inherits from the Control class.
  • C、Ensure that the Web control inherits from the CompositeControl class.
  • D、Ensure that the Web control inherits from the UserControl class.

相似考题
更多“You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()A、Ensure that the Web control inherits from the W”相关问题
  • 第1题:

    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..

    正确答案:A

  • 第2题:

    You develop an ASP.NET Web page that includes multiple WebPartZone controls, an EditorZone. Users report that they cannot customize the layout of the page by moving WebParts from one.You need to ensure that users can successfully move Web Parts from one zone to another. What should you do?()

    • A、Configure the Web site to enable session state.
    • B、Configure the Web site to require authentication and to use personalization.
    • C、Add a ProxyWebPartManager control to the page.
    • D、Add a AppearanceEditorPart control to the page.

    正确答案:B

  • 第3题:

    You create a mobile Web application. You need to use a Command control to post user input from the UI elements back to the server. What are two possible ways to achieve this goal?()

    • A、Place the Command control within an instance of the System.Web.UI.MobileControls.SelectionList control.
    • B、Place the Command control within an instance of the System.Web.UI.MobileControls.ObjectList control.
    • C、Place the Command control within an instance of the System.Web.UI.MobileControls.Form control.
    • D、Place the Command control within an instance of the System.Web.UI.MobileControls.Panel control.

    正确答案:C,D

  • 第4题:

    You create a Web site. You add an EditorZone control to the home page on the Web site. You need to enable users to customize the size and location of the Web Parts on their home pages. Which two controls should you add to the EditorZone control?()

    • A、BehaviorEditorPart
    • B、AppearanceEditorPart
    • C、PropertyGridEditorPart
    • D、LayoutEditorPart

    正确答案:B,D

  • 第5题:

    单选题
    You are creating a templated Web control for use in your Web application.You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()
    A

    Ensure that the Web control inherits from the WebControl class.

    B

    Ensure that the Web control inherits from the Control class.

    C

    Ensure that the Web control inherits from the CompositeControl class.

    D

    Ensure that the Web control inherits from the UserControl class.


    正确答案: C
    解析: 暂无解析

  • 第6题:

    单选题
    You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do? ()
    A

    Ensure that the Web control inherits from the WebControl class.

    B

    Ensure that the Web control inherits from the Control class.

    C

    Ensure that the Web control inherits from the CompositeControl class.

    D

    Ensure that the Web control inherits from the UserControl class.


    正确答案: A
    解析: 暂无解析

  • 第7题:

    You create a control named ContosoUI for a Web application. You need to add the control to the toolbox of Microsoft Visual Studio .NET. Which two actions should you perform?()

    • A、Create the ContosoUI control as a Web Control Library.
    • B、Create the ContosoUI control as a Web user control.
    • C、Within the Visual Studio .NET toolbox, browse to and select ContosoUI.ascx.
    • D、Within the Visual Studio .NET toolbox, browse to and select ContosoUI.dll.

    正确答案:A,D

  • 第8题:

    You create a Web server control named ContosoControls. You add a Web custom control named ContosoMailer to it. You then distribute the Web Control Library files to your team. You need to provide your team with the correct procedure for adding the Web Control Library to the items in the toolbox of Microsoft Visual Studio .NET. Which procedure should you provide to the team?()

    • A、Within the toolbox, click Choose Items and then browse to and select the ContosoControls user control.
    • B、Within the toolbox, click Choose Items and then browse to and select the ContosoMailer user control.
    • C、Right-click Web Project, click Add Reference, and then browse to and select the ContosoControls.dll file.
    • D、Within the toolbox, click Choose Items and then browse to and select the ContosoControls.dll file.

    正确答案:D

  • 第9题:

    You are creating a templated Web control for use in your Web application.You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()

    • A、Ensure that the Web control inherits from the WebControl class.
    • B、Ensure that the Web control inherits from the Control class.
    • C、Ensure that the Web control inherits from the CompositeControl class.
    • D、Ensure that the Web control inherits from the UserControl class.

    正确答案:D

  • 第10题:

    You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do? ()

    • A、Ensure that the Web control inherits from the WebControl class.
    • B、Ensure that the Web control inherits from the Control class.
    • C、Ensure that the Web control inherits from the CompositeControl class.
    • D、Ensure that the Web control inherits from the UserControl class.

    正确答案:D

  • 第11题:

    单选题
    You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()
    A

    Ensure that the Web control inherits from the WebControl class.

    B

    Ensure that the Web control inherits from the Control class.

    C

    Ensure that the Web control inherits from the CompositeControl class.

    D

    Ensure that the Web control inherits from the UserControl class.


    正确答案: D
    解析: 暂无解析

  • 第12题:

    单选题
    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.


    正确答案: A
    解析: 暂无解析