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

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


相似考题
更多“单选题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 C”相关问题
  • 第1题:

    You create a Web Form that contains a TreeView control. The TreeView control allows users to navigate within the Marketing section of your Web site. The following XML defines the site map for your site. You need to bind the TreeView control to the site map data so that users can navigate only within the Marketing section. Which three actions should you perform?()

    • A、Add a SiteMapDataSource control to the Web Form and bind the TreeView control to it.
    • B、Add a SiteMapPath control to the Web Form and bind the TreeView control to it.
    • C、Embed the site map XML within the SiteMap node of a Web.sitemap file.
    • D、Embed the site map XML within the AppSettings node of a Web.config file.
    • E、Set the StartingNodeUrl property of the SiteMapDataSource control to ~/Marketing.aspx.
    • F、Set the SkipLinkText property of the SiteMapPath control to Sales.

    正确答案:A,C,E

  • 第2题:

    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

  • 第3题:

    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

  • 第4题:

    You are working with a team of developers on a Web site. You copy the Web site from the staging server to work on it locally. While making changes, you create new C# source code files and delete old ones. You need to ensure that your changes propagate to the staging server without affecting any files that you have not modified. Which tool should you use? ()

    • A、XCOPY
    • B、the Copy Web tool
    • C、the Publish Web tool
    • D、a Web Setup project

    正确答案:B

  • 第5题:

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


    正确答案: 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 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
    解析: 暂无解析

  • 第8题:

    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

  • 第9题:

    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

  • 第10题:

    You are creating a custom user control. The custom user control will be used on 10 Web Forms for an ASP.NET Web site that allows users to register and log on to a personalized experience. The custom user control uses two TextBox controls and two Button controls. You need to ensure that the controls are visible only when users are not logged on to the Web site. You also need to minimize the amount of effort in development and maintenance for the Web site. Which two actions should you perform? ()

    • A、Add the OnClick event handler for the Login button to the code used in the custom user control.
    • B、Add the OnClick event handler for the Login button to the code used in the Web Form where the control is added.
    • C、In the Page_Load method of the Web Form, add a code segment to set the visibility of the TextBox and Button controls where the control is added.
    • D、In the Page_Load method of the custom user control, add a code segment to set the visibility of the TextBox and Button controls.

    正确答案:A,D

  • 第11题:

    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

  • 第12题:

    单选题
    You are working with a team of developers on a Web site. You copy the Web site from the staging server to work on it locally. While making changes, you create new C# source code files and delete old ones. You need to ensure that your changes propagate to the staging server without affecting any files that you have not modified. Which tool should you use? ()
    A

    XCOPY

    B

    the Copy Web tool

    C

    the Publish Web tool

    D

    a Web Setup project


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

  • 第13题:

    多选题
    You create a Web Form that contains a TreeView control. The TreeView control allows users to navigate within the Marketing section of your Web site. The following XML defines the site map for your site. You need to bind the TreeView control to the site map data so that users can navigate only within the Marketing section. Which three actions should you perform?()
    A

    Add a SiteMapDataSource control to the Web Form and bind the TreeView control to it.

    B

    Add a SiteMapPath control to the Web Form and bind the TreeView control to it.

    C

    Embed the site map XML within the SiteMap node of a Web.sitemap file.

    D

    Embed the site map XML within the AppSettings node of a Web.config file.

    E

    Set the StartingNodeUrl property of the SiteMapDataSource control to ~/Marketing.aspx.

    F

    Set the SkipLinkText property of the SiteMapPath control to Sales.


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

  • 第14题:

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


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