You are creating a custom contr

题目

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.
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You have a DNS zone that is stored in a custom application directory partition.     You install a new domain controller.   You need to ensure that the custom application directory partition replicates to the new domain  controller.     What should you use()

  • A、the Active Directory Administrative Center console
  • B、the Active Directory Sites and Services console
  • C、the DNS Manager console
  • D、the Dnscmd tool

正确答案:D

第2题:

You are employed as the exchange administrator at Company.com.the Company.com network contains an exchange 2010 organization.you are responsible for managing an exchange server 2010 mailbox server named -ex01.You are in the process of implementing a policy that deletes e-mail messages automatically after 60 days.You receive an instruction from management to identify another location where users can store their messages after 60 days.However, administrators need to locate the e-mail messages in both locations when executing multi- mailbox searches. What should you do?()

  • A、You should consider creating a Retention Policy.
  • B、You should consider creating a.pst file for each user that is stored in a shared folder.
  • C、You should consider creating a Personal Archive for each user.
  • D、You should consider creating a journal rule.

正确答案:C

第3题:

You would like to create a custom performance counter for an application that you created recently.To do this, you decide to create a custom category named ApplicationPerformance and a performance counter named HitNumber.You need to ensure that this counter is shared across numerous applications.What should you do?()

A.

B.

C.

D.


参考答案:D

第4题:

Your network contains an Active Directory forest. The forest schema contains a custom attribute for  user objects.   You need to modify the custom attribute value of 500 user accounts.   Which tool should you use()

  • A、Csvde
  • B、Dsmod
  • C、Dsrm
  • D、Ldifde

正确答案:D

第5题:

You are creating a Windows Forms application by using the .NET Framework 3.5. You plan to develop a new control for the application.You need to ensure that the control extends the TreeView control by adding a custom node tag and a highlight color.What should you do?()

  • A、Override the OnPaint method.
  • B、Write a code segment in the DrawNode event handler to specify the highlight color.
  • C、Set the DrawMode property of the control to OwnerDrawAll, and then implement a custom DrawNode event handler.
  • D、Set the DrawMode property of the control to OwnerDrawText,and then implement a custom DrawNode event handler.

正确答案:D

第6题:

How are custom controls made?()

  • A、By assembling existing controls
  • B、By combining multipleXPages together
  • C、By creating a brand new widget from scratch
  • D、By writing the code for a brand new control

正确答案:A

第7题:

You work as an application developer at Certkiller .com. You are in the process of creating an application for Certkiller .com’s Human Resources department that tracks employee benefits. You have to store current employee data without recompiling the application. You elect to store this employee data as a custom section in the application configuration file. The relevant portion of the application configuration file is shown in the following exhibit: <?xml version="1.0" encoding="utf-8" ?>   You want to use the .NET 2.0 Configuration API to access the custom section. You need to ensure that programmatic access of the EmployeeSection element is enabled. What should you do?()

  • A、 Create a custom section handler class that inherits the ConfigurationSection interface.
  • B、 Add a section element to the EmployeeSection element of the application configuration file.
  • C、 Create a custom section handler class that implements the IConfigurationSectionHandler interface.
  • D、 Add an EmployeeSection element to the configSections element of the application configuration file.
  • E、 Create a custom section handler class that implements the IApplicatioSettingsProvider interface.
  • F、 Add a section element to the configSections element of the application configuration file.

正确答案:A,F

第8题:

You have a computer that runs Microsoft Windows XP. The computer has a custom application installed.You plan to upgrade the Windows XP computer to Windows Vista.You need to identify whether User Account Control (UAC) will allow the custom application to run without requiring elevated privileges.What should you do?()

A.A

B.B

C.C

D.D


参考答案:D

第9题:

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

第10题:

You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5.  A third-party assembly contains custom server controls. This assembly does not contain a strongname and it’s not part of the application’s Microsoft Visual Studio 2008 solution. You have to makesure that the other users are able to use the custom controls. You decide to configure theapplications project.  What should you do?()

  • A、You should add a project reference to the project.
  • B、You should add a Web reference to the project.
  • C、You should add a service reference to the project.
  • D、You should add an assembly reference to the project.

正确答案:D

更多相关问题