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.

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.

相关考题:

You install a custom application on a computer that runs Microsoft Windows XP. The application stores each user’s data in the %programfiles%\app1\data folder on the computer. You install the custom application on a computer that runs Windows Vista.On the Windows Vista computer, you back up the %programfiles%\app1\data folder and notice that the backup contains no data.You need to back up the application’s user data on the Windows Vista computer.What should you do?()A.AB.BC.CD.D

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.AB.BC.CD.D

Your network contains an Active Directory forest. The forest schema contains a custom attribute  for user objects.     You need to give the human resources department a file that contains the last logon time and the  custom attribute values for each user in the forest.     Which should you use()A、the Dsquery toolB、the Export-CSV cmdletC、the Get-ADUser cmdletD、the Net.exe user command

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.

You are the administrator of your company’s network. You configure a local group named accounting to have a mandatory user profile. The mandatory profile has been configured to include a custom logo that was saved with 16-bit color and 1025x768 resolution. Some of the Windows 2000 Professional computers in the accounting department have standard VGA video adapters, and others have SVGA video adapters. Several users report that when they log on to certain Windows 2000 Professional computers, the custom bitmap becomes very pixilated and distorted, and does not reflect the proper color depth. You want users to be able to correctly view the custom bitmap on any computer in the accounting department. In addition to this, you also want to allow the users to modify, change and save their desktop settings. What should you do?()A、Configure a roaming user profile for each user in the accounting groupB、Configure a separate user profile for each user in the accounting Group. C、Change the custom bitmap to a 16-color bitmap that has 640x480 resolution, and reconfigure the mandatory user profile D、Reinstall the appropriate WDM-compliant drivers for the computers that do not display the custom bitmap correctly.

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.

You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to design a new control that will be used on multiple forms in the app.You need to ensure that the control meets the following requirement  (1)It retrieves data from a MSSQL Server 2008 database instance. (2)It uses WPF classes to display data.  (3)It uses user-customizable actions when the control is first painted on the form.   What should you do?()A、Create a new custom class for the control that is derived from the Control class.B、Create a new custom class for the control that is derived from the UserControl class.C、Create a new custom class for the control that is derived from the ContentControl class.D、Create a new custom class for the control that is derived from the ContentPresenter class.

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.

Your network consists of a single Active Directory domain. The functional level of the domain is Windows Server 2003. You extend the Active Directory Schema to support a custom user attribute. You need to assign the same value to the custom attribute for 1,500 users. You must achieve this goal by using the minimum amount of administrative effort. Which tool should you use? ()A、Adsiedit.mscB、Csvde.exeC、Dsmod.exeD、Ldifde.exe

You are the administrator of your company’s network. You configure a local group named accounting to have a mandatory user profile. The mandatory profile has been configured to include a custom logo that was saved with 16-bit color and 1025x768 resolution. Some of the Windows 2000 Professional computers in the accounting department have standard VGA video adapters, and others have SVGA video adapters. Several users report that when they log on to certain Windows 2000 Professional computers, the custom bitmap becomes very pixilated and distorted, and does not reflect the proper color depth. You want users to be able to correctly view the custom bitmap on any computer in the accounting department. What should you do? ()A、Configure a roaming user profile for each user in the accounting groupB、Configure a separate user profile for each user in the accounting GroupC、Change the custom bitmap to a 16-color bitmap that has 640x480 resolution, and reconfigure  the mandatory user profileD、Reinstall the appropriate WDM-compliant drivers for the computers that do not display the  custom bitmap correctly.

You are creating an ASP.NET Web site. The site is configured to use Membership and Role management providers. You need to check whether the currently logged-on user is a member of a role namedAdministrators. Which code segment should you use?()A、bool isMember = Roles.GetUsersInRole("Administrators").Any()B、bool isMember = Membership.ValidateUser(User.Identity.Name, "Administrators")C、bool isMember = Roles.GetRolesForUser("Administrators").Any()D、bool isMember = User.IsInRole("Administrators")

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、CsvdeB、DsmodC、DsrmD、Ldifde

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.

Your network contains a computer that runs Windows XP Professional. Multiple users share the computer. You create a custom user profile on the computer. You need to ensure that all new users of the computer receive the custom user profile. What should you do?() A、Run the Files and Settings Transfer Wizard.B、At the command prompt, run scanstate.exe. C、Use the Copy To function from the User Profiles settings. D、Rename the folder that contains the custom user profile to winnt_user.

You work as an application developer at Cer-Tech.com.You are in the process of creating an application for Cert-Tech.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: What should you do?()A、 Create a custom section handler class that inherits the ConfigurationSection interfaceB、 Add a section element to the EmployeeSection element of the application configuration fileC、 Create a custom section handler class that implements the IConfigurationSectionHandler interface.D、 Add an EmployeeSection element to the configSections element of the application confguration fileE、 Create a custom section handler class that implements the IApplicationSettingsProvider interfaceF、 Add a section element to the configSections element of the application configuration file

多选题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:          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?()ACreate a custom section handler class that inherits the ConfigurationSection interface.BAdd a section element to the EmployeeSection element of the application configuration file.CCreate a custom section handler class that implements the IConfigurationSectionHandler interface.DAdd an EmployeeSection element to the configSections element of the application configuration file.ECreate a custom section handler class that implements the IApplicatioSettingsProvider interface.FAdd a section element to the configSections element of the application configuration file.

单选题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?()AYou should consider creating a Retention Policy.BYou should consider creating a.pst file for each user that is stored in a shared folder.CYou should consider creating a Personal Archive for each user.DYou should consider creating a journal rule.

单选题Your network contains a computer that runs Windows XP Professional. Multiple users share the computer. You create a custom user profile on the computer. You need to ensure that all new users of the computer receive the custom user profile. What should you do?()ARun the Files and Settings Transfer Wizard.BAt the command prompt, run scanstate.exe. CUse the Copy To function from the User Profiles settings. DRename the folder that contains the custom user profile to winnt_user.

单选题You are the administrator of your company’s network. You configure a local group named accounting to have a mandatory user profile. The mandatory profile has been configured to include a custom logo that was saved with 16-bit color and 1025x768 resolution. Some of the Windows 2000 Professional computers in the accounting department have standard VGA video adapters, and others have SVGA video adapters. Several users report that when they log on to certain Windows 2000 Professional computers, the custom bitmap becomes very pixilated and distorted, and does not reflect the proper color depth. You want users to be able to correctly view the custom bitmap on any computer in the accounting department. In addition to this, you also want to allow the users to modify, change and save their desktop settings. What should you do?()AConfigure a roaming user profile for each user in the accounting groupBConfigure a separate user profile for each user in the accounting Group. CChange the custom bitmap to a 16-color bitmap that has 640x480 resolution, and reconfigure the mandatory user profile DReinstall the appropriate WDM-compliant drivers for the computers that do not display the custom bitmap correctly.

单选题You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to design a new control that will be used on multiple forms in the app.You need to ensure that the control meets the following requirement:   (1)It retrieves data from a MSSQL Server 2008 database instance.   (2)It uses WPF classes to display data.   (3)It uses user-customizable actions when the control is first painted on the form.    What should you do?()ACreate a new custom class for the control that is derived from the Control class.BCreate a new custom class for the control that is derived from the UserControl class.CCreate a new custom class for the control that is derived from the ContentControl class.DCreate a new custom class for the control that is derived from the ContentPresenter class.

单选题Your network consists of a single Active Directory domain. The functional level of the domain isWindows Server 2003.You extend the Active Directory Schema to support a custom user attribute.You need to assign the same value to the custom attribute for 1,500 users. You must achieve this goal byusing the minimum amount of administrative effort.Which tool should you use? ()AAdsiedit.mscBCsvde.exeCDsmod.exeDLdifde.exe

单选题Your network contains an Active Directory forest. The forest schema contains a custom attribute for  user objects.   You need to give the human resources department a file that contains the last logon time and the custom  attribute values for each user in the forest.   What should you use()Athe Dsquery toolBthe Export-CSV cmdletCthe Get-ADUser cmdletDthe Net.exe user command

单选题You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to create a Windows Installer package for a Windows Forms application. The package will be deployed on Windows Vista computers.You need to ensure that during deployment the installation does not elevate privileges of the user installing the application.What should you do?()ACreate a custom action and set the NoImpersonate property to trueBCreate a custom action and set the NoImpersonate property to falseCCreate a manifest and set the RequestedExecutionLevel level attribute to AsInvokerDCreate a manifest and set the RequestedExecutionLevel level attribute to AsAdministrator

单选题You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to create a Windows Installer package for a Windows Forms application.The package will be deployed on Windows Vista computers.You need to ensure that during deployment the installation does not elevate privileges of the user installing the application.What should you do?()ACreate a custom action and set the NoImpersonate property to trueBCreate a custom action and set the NoImpersonate property to falseCCreate a manifest and set the RequestedExecutionLevel level attribute to AsInvoker.DCreate a manifest and set the RequestedExecutionLevel level attribute to AsAdministrator.

单选题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?()AOverride the OnPaint method.BWrite a code segment in the DrawNode event handler to specify the highlight color.CSet the DrawMode property of the control to OwnerDrawAll, and then implement a custom DrawNode event handler.DSet the DrawMode property of the control to OwnerDrawText,and then implement a custom DrawNode event handler.

多选题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?()AAdd the OnClick event handler for the Login button to the code used in the custom user control.BAdd the OnClick event handler for the Login button to the code used in the Web Form where the control is added.CIn 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.DIn the Page_Load method of the custom user control, add a code segment to set the visibility of the TextBox and Button controls.

单选题You are the desktop administrator for your company's sales department. The IT manager for the sales department needs to distribute a custom application to the Windows XP Professional computers in the sales department. He deploys the software by using Group Policy. Susan is a user in the sales department. She reports that the custom application is not available. You examine her computer, and you verify that the application is not present on her computer. You want to ensure that the software is deployed the next time Susan logs on. Which command should you run?()ASecedit /refreshpolicy user_policy /enforceBSecedit /refreshpolicy machine_policy /enforceCGpupdate /target:computer /syncDGpupdate /target:user /sync