题目内容

您正在编写自定义字典。该自定义字典类名为MyDictionary。您需要确保该字典是类型安全的字典。您应该使用哪个代码段?()

A
B
C
D

查看答案
更多问题

YouaredevelopingaWebapplication.TheWebapplicationrestrictsaccesstoanadministrativepage.TheWebapplicationusesthefollowingcodesegmenttoprotectthepage.if(Page.User.Identity.Name!=@"CONTOSO\Administrator"){thepage,youareredirectedtoLogin.aspx.YoudiscoverthattheUser.Identity.Namepropertyisnotbeingcorrectlypopulated.YouneedtoensurethatyoucanaccessthepagewhenyouareloggedonasAdministrator.Whichtwoactionsshouldyouperform?()

A. IntheWeb.configfile,enableimpersonation.
B. InIIS,enableanonymousaccess.
C. InIIS,disableanonymousaccess.
D. IntheWeb.configfile,settheauthenticationmodetoWindows.

以下几个事件中代表“鼠标滑到”的事件是()

A. OnMouse Down
B. OnMouse Out
C. OnMouse Over
D. Onouse Up

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 interface
B. Add a section element to the EmployeeSection element of the application configuration file
Create a custom section handler class that implements the IConfigurationSectionHandler interface.
D. Add an EmployeeSection element to the configSections element of the application confguration file
E. Create a custom section handler class that implements the IApplicationSettingsProvider interface
F. Add a section element to the configSections element of the application configuration file

You create a Web page that contains the following code. You need to ensure that when the user clicks an item in the list, the text color of the "Welcome!" message will change. Which declaration should you use?()

A. Black Red
Black Red
C. Red Black
D. Red Black

答案查题题库