bool isMember = Roles.GetUsersInRole(Administrators).Any()
bool isMember = Membership.ValidateUser(User.Identity.Name, Administrators)
bool isMember = Roles.GetRolesForUser(Administrators).Any()
bool isMember = User.IsInRole(Administrators)
第1题:
You create a Web site. The Web site has many predefined roles and associated users that will be used for security purposes. You need to manage these roles and user accounts. Which tool should you use? ()
第2题:
You are an IIS Web server administrator implementing authentication settings for a new Web site.According to the requirements for the Human Resources Web site, users should be prompted forauthentication information when they attempt to access the site. The site will be accessed only by userswho have accounts in your organization’s Active Directory domain. You have already configured the filesystem permissions for the content based on the appropriate settings. You also want to maximize securityof the site. Which two actions should you take to meet these requirements?()
第3题:
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?()
第4题:
You create a Web site for a customer. You need to deploy the Web site to the customers server without any of the source files for the Web site. You do not want the customer to be able to update any of the static pages on the Web site. Which tool should you use?()
第5题:
bool isMember = Roles.GetUsersInRole(Administrators).Any()
bool isMember = Membership.ValidateUser(User.Identity.Name, Administrators)
bool isMember = Roles.GetRolesForUser(Administrators).Any()
bool isMember = User.IsInRole(Administrators)
第6题:
To achieve the goal, the Login URL property for the Forms Authentication Settings should be configured to the userlogin.aspx filename.
To achieve the goal, the Default Document setting should be configured to add the userlogin.aspx filename in the Web site properties.
To achieve the goal, the Forms Authentication Settings should be configured to Require SSL.
To achieve the goal, the Name property of the Cookie Settings should be configured to the userlogin.aspx filename.
第7题:
Set the .NET Framework trust level to Full for the Web site.
Set the .NET Framework trust level to Low for the Web site.
Set the .NET Framework trust level to High for the Web site.
Set the .NET Framework trust level to Medium for the Web site.
第8题:
Verify that Management Service has been started.
Reconfigure the file system permissions for the root folder of the Web site.
Reconfigure Management Service to enable Windows And IIS Manager Credentials.
Verify the Authentication settings for the Web site.
第9题:
The ASP.NET Impersonation setting should be configured to Enabled. Edit the ASP.NET Impersonation setting by specifying the new local user account.
The Windows Authentication setting should be configured to Enabled.
The Forms Authentication setting should be configured to Enabled by using all the default settings.
The ASP.NET State Service should be configured to log on to the new local user account by using the Services console.
第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? ()
第11题:
You create a Web site for a customer. You need to deploy the Web site to the customers server without any of the source files for the Web site. You do not want the customer to be able to update any of the static pages on the Web site. Which tool should you use? ()
第12题:
You are creating an ASP.NET Web site. The site contains pages that are available to anonymous users. The site also contains a page named Premium.aspx that provides premium content to only members of a group named Subscribers. You need to modify the web.config file to ensure that Premium.aspx can be accessed by only members of the Subscribers group. Which configuration should you use?()
第13题:
aspnet_compiler.exe
InstallUtil.exe
CSC.exe
aspnet_wp.exe
第14题:
Authorization Rules
Machine Key
Pages And Controls
SSL Settings
第15题:
the Microsoft .NET Framework Configuration tool
the Code Access Security Policy tool
the ASP.NET IIS Registration tool
the Web Site Administration Tool
第16题:
Authentication
Authorization Rules
IIS Manager Permissions
SSL Settings
第17题:
aspnet_compiler.exe
InstallUtil.exe
CSC.exe
aspnet_wp.exe