You are implementing an ASP.NET Web site that will be access

题目
单选题
You are implementing an ASP.NET Web site that will be accessed by an international audience. The site contains global and local resources for display elements that must be translated into the language that is selected by the user. You need to ensure that the Label control named lblCompany displays text in the user’s selected language from the global resource file. Which control markup should you use?()
A

<asp:Label ID=lblCompany runat=server meta:resourcekey=lblCompany />

B

<asp:Label ID=lblCompany runat=server Text=meta:lblCompany.Text /> 

C

<asp:Label ID=lblCompany runat=server Text=<%$ Resources:lblCompanyText %> />

D

<asp:Label ID=lblCompany runat=server Text=<%$ Resources:WebResources, lblCompanyText %> />

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Your company has an Active Directory domain. All computers are members of the domain. Your networkcontains an internal Web site that uses Integrated Windows Authentication. From a computer that runs Windows 7, you attempt to connect to the Web site and are prompted for authentication. You verify that youruser account has permission to access the Web site. You need to ensure that you are automaticallyauthenticated when you connect to the Web site.  What should you do?()

  • A、Create a complex password for your user account.
  • B、Open Credential Manager and modify your credentials.
  • C、Add the URL of the Web site to the Trusted sites zone.
  • D、Add the URL of the Web site to the Local intranet zone.

正确答案:D

第2题:

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? ()

  • A、the Microsoft .NET Framework Configuration tool
  • B、the Code Access Security Policy tool
  • C、the ASP.NET IIS Registration tool
  • D、the Web Site Administration Tool

正确答案:D

第3题:

You create a Web site that is for members only. The Web site allows members to create lists of users that have access to information about member profiles. The name of the list is stored in the listName variable. The user name of the user to whom access is given is stored in the username variable.You need to enable members to manage their lists of users.Which code segment should you use?()

A.

B.

C.

D.


参考答案:B

第4题:

You are implementing an ASP.NET Web site that uses a custom server control named Task. Task is defined as shown in the following list.    Class name: Task   Namespace: DevControls   Assembly: TestServerControl.dll   Base class: System.Web.UI.WebControls.WebControl    You copy TestServerControl.dll to the Web site‟s Bin folder.  You need to allow the Task control to be declaratively used on site pages that do not contain an explicit @ Register directive.  Which configuration should you add to the web.config file?()

  • A、<appSettings> <add key="Dev:Task" value="DevControls, DevControls.Task"/> </appSettings>  
  • B、<compilation targetFramework="4.0" explicit="false"> <assemblies> <add assembly="TestServerControl" />      </assemblies> </compilation>
  • C、<pages> <controls> <add assembly="TestServerControl" namespace="DevControls" tagPrefix="Dev"/>      </controls> </pages>
  • D、<pages> <tagMapping> <add tagType="System.Web.UI.WebControls.WebControl"  mappedTagType="DevControls </tagMapping> </pages>  

正确答案:C

第5题:

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?()

  • A、Enable Windows authentication.
  • B、Enable basic authentication.
  • C、Disable anonymous authentication.
  • D、Enable anonymous authentication.

正确答案:A,C

第6题:

You are implementing an ASP.NET MVC 2 Web application that allows users to view and edit data. You need to ensure that only logged-in users can access the Edit action of the controller. What are two possible attributes that you can add to the Edit action to achieve this goal? ()

  • A、[Authorize(Users = "")]
  • B、[Authorize(Roles = "")]
  • C、[Authorize(Users = "*")]
  • D、[Authorize(Roles = "*")]

正确答案:A,B

第7题:

You work as the IT professional in an international company which is named Wiikigo. You are experiencedin implementing and administering a network operating system. You are specialized in deploying servers,configuring Windows Server 2008 Terminal services and network application services, and configuring aweb services infrastructure. You manage a server that runs Windows Server 2008. The server hasTerminal Service Web Access (TS Web Access) installed. Several line-of-business applications areavailable on the server by using TS Web Access. You have a new application installed on the server. Youhave to make the application available through TS Web Access. In order to achieve this,What action should you perform?()

  • A、In order to make the application available through TS Web Access, the data source for TS Web Accessshould be specified from the TS Web Access Web site.
  • B、In order to make the application available through TS Web Access, the application should be added to the RemoteApp Programs list from TS RemoteApp Manager.
  • C、In order to make the application available through TS Web Access, the users should be added to the TS Web Access Computers group from the Local Users and Groups snap-in.
  • D、In order to make the application available through TS Web Access, the mstsc.exe command should be run and specify the /v parameter should be specified from the command prompt.

正确答案:B

第8题:

You are deploying an ASP.NET Web application to a remote server. You need to choose a deployment method that will ensure that all IIS settings, in addition to the Web content, will deploy to the remote server. Which deployment method should you choose?()

  • A、the XCOPY command-line tool
  • B、the Copy Web Site tool
  • C、the Web Deployment tool
  • D、the Publish Web Site utility

正确答案:C

第9题:

You create a Web site that you must copy from a development server to a testing server, along with all source files. You do not have terminal access to the testing server. You need to create the virtual directory. Then you must copy the Web site to the virtual directory on the testing server without precompiling the site. What should you do? ()

  • A、Use the Publish Web tool.
  • B、Use the Copy Web tool.
  • C、Use the command line to XCOPY the files.
  • D、Create a Web Setup project.

正确答案:B

第10题:

You work as the IT professional in an international company which is named Wiikigo. You are experiencedin implementing and administering a network operating system. You are specialized in deploying servers,configuring Windows Server 2008 Terminal services and network application services, and configuring aweb services infrastructure. You are in charge of a member server that runs Windows Server 2008. Themember server has the Web Server (IIS) server role installed. The server hosts a Web site that is onlyaccessible to the executives of your company. According to the requirement of the company policy, theexecutives must use user certificates to access the confidential Web content. You have to make sure thatthe executives can only access the secure Web site by using their installed certificates. What action shouldyou perform to make sure of this?()

  • A、A Certificate Trust list should be configured to include the executives certification authority (CA)certificate.
  • B、The SSL settings should be configured to Require 128-bit SSL on the confidential Web site.
  • C、The Client Certificates settings should be configured to Accept on the SSL settings for the confidentialWeb site.
  • D、The Client Certificates settings should be configured to Require on the SSL settings for the confidentialWeb site.

正确答案:D

更多相关问题