niusouti.com

You are implementing an ASP.NET application that includes a page named TestPage.aspx. TestPage.aspx uses a master page named TestMaster.master. You add the following code to the TestPage.aspx code-behind file to read a TestMaster.master public property na

题目

You are implementing an ASP.NET application that includes a page named TestPage.aspx. TestPage.aspx uses a master page named TestMaster.master. You add the following code to the TestPage.aspx code-behind file to read a TestMaster.master public property named CityName. protected void Page_Load(object sender, EventArgs e) { string s = Master.CityName; }  You need to ensure that TestPage.aspx can access the CityName property. What should you do?()

  • A、Add the following directive to TestPage.aspx. <%@ MasterType VirtualPath="~/TestMaster.master" %><%@ mastertype="" virtualpath="~/TestMaster.master">
  • B、Add the following directive to TestPage.aspx. <%@ PreviousPageType VirtualPath="~/TestMaster.master" %><%@ previouspagetype="" virtualpath="~/TestMaster.master">
  • C、Set the Strict attribute in the @ Master directive of the TestMaster.master page to true.
  • D、Set the Explicit attribute in the @ Master directive of the TestMaster.master page to true.

相似考题
更多“You are implementing”相关问题
  • 第1题:

    The Company LAN is becoming saturated with broadcasts and multicast traffic. What could you do  to help a network with many multicasts and broadcasts?()

    • A、Creating smaller broadcast domains by implementing VLANs.
    • B、Separate nodes into different hubs.
    • C、Creating larger broadcast domains by implementing VLANs.
    • D、Separate nodes into different switches.
    • E、All of the above.

    正确答案:A

  • 第2题:

    You are implementing a new frame relay network to provide connectivity between you offices. To do this, you set up the frame relay network using point-to-point subinterfaces.Which of the following does NOT need to be configured?()

    • A、The Frame Relay encapsulation on the physical interface.
    • B、The local DLCI on each subinterface.
    • C、An IP address on the physical interface.
    • D、The subinterface type as point-to-point.

    正确答案:C

  • 第3题:

    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

  • 第4题:

    You are the enterprise administrator for an Exchange Server 2010 organization. All users run Microsoft Office Outlook 2010.  You are designing a sharing solution for your organization and a partner organization. The partner organization also uses Exchange Server 2010.  You need to recommend a strategy for sharing information with the partner organization to meet thefollowing requirements: .Provide cross-organizational access to user contacts  .Provide cross-organizational access to free/busy information What should you recommend?()

    • A、Creating cross-forest trusts
    • B、Implementing Federated Sharing
    • C、Implementing Microsoft Identify Lifecycle Manager (ILM) 2007
    • D、Running the Microsoft Exchange Inter-Organization Replication tool

    正确答案:B

  • 第5题:

    You work as a system administrator at Certkiller.com. You are in the process of creating anASP.NET application using Microsoft .NET Framework v3.5.  You receive an instruction from management to create a custom-templated server control. Toensure productivity you need to make sure that the child controls of the newly created servercontrol are identified within the hierarchy of the page. You thus need to identify the interface thatwill accomplish this.  What should you do?()

    • A、You should consider implementing the IRequiresSessionState interface.
    • B、You should consider implementing the ITemplatable interface.
    • C、You should consider implementing the IPostBackDataHandler interface.
    • D、You should consider implementing the INamingContainer interface

    正确答案:D

  • 第6题:

    You work as the IT professional in an international company which is named wiikigo. You are experienced in implementing and administering a network operating system. You are specialized in configuring IP addressing and services. Configuring name resolution and network access and so on.Your company is desigiing its network. The network will use an IPv6 prefix of 2001:DB8: BBCC:0000::/53. You have to identify an IPv6 addressing scheme that will support 2000 subnets. Which network mask should you use?()

    • A、You should use /63.
    • B、You should use /64.
    • C、You should use /61.
    • D、You should use /62.

    正确答案:B

  • 第7题:

    单选题
    You are implementing a new frame relay network to provide connectivity between you offices. To do this, you set up the frame relay network using point-to-point subinterfaces.Which of the following does NOT need to be configured?()
    A

    The Frame Relay encapsulation on the physical interface.

    B

    The local DLCI on each subinterface.

    C

    An IP address on the physical interface.

    D

    The subinterface type as point-to-point.


    正确答案: B
    解析: 暂无解析

  • 第8题:

    多选题
    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 = *)]


    正确答案: C,D
    解析: 暂无解析

  • 第9题:

    单选题
    You are implementing an ASP.NET application. The application includes a Person class with property Age. You add a page in which you get a list of Person objects and display the objects in a GridView control. You need to add code so that the GridView row is highlighted in red if the age of the person is less than 18. Which GridView event should you handle?()
    A

    RowDataBound

    B

    RowCommand

    C

    RowUpdated

    D

    RowEditing


    正确答案: A
    解析: 暂无解析

  • 第10题:

    单选题
    How can you create a listener class that receives events when the mouse is moved?()
    A

     By extending MouseListener.

    B

     By implementing MouseListener.

    C

     By extending MouseMotionListener.

    D

     By implementing MouseMotionListener.

    E

     Either by extending MouseMotionListener or extending MouseListener.

    F

     Either by implementing MouseMotion Listener or implementing MouseListener.


    正确答案: D
    解析: 暂无解析

  • 第11题:

    单选题
    You are designing a DNS implementing strategy to meet the business and technical requirement.  Which type of zone should you use?()
    A

     Sub Zones

    B

     Standard Primary Zones

    C

     Secondary Zones

    D

     Active DirectoryIntegrated Zones


    正确答案: D
    解析: 暂无解析

  • 第12题:

    单选题
    You are developing a Windows Presentation Foundation (WPF) application. You are implementing a test strategy for the application. You need to ensure that the test class can repeat user input. From which base class should the test class inherit?()
    A

     AutomationElementIdentifier

    B

     AutomationPeer

    C

     Keyboard

    D

     UICues


    正确答案: B
    解析: 暂无解析

  • 第13题:

    You are charged with implementing a secure wireless installation which will provide Internet accessto client devices but will not allow communications between wireless clients. In addition to implementing PSPF or peer-to-peer blocking on the wireless side. Which of the following actions should you perform on the wired infrastructure?()

    • A、Implement a Cisco Secure IPS sensor.
    • B、Implement 802.1X on the switch ports.
    • C、Take no action, you have achieved your goal.
    • D、Implement a protected port on the access switches.

    正确答案:D

  • 第14题:

    How can you create a listener class that receives events when the mouse is moved?()  

    • A、 By extending MouseListener.
    • B、 By implementing MouseListener.
    • C、 By extending MouseMotionListener.
    • D、 By implementing MouseMotionListener.
    • E、 Either by extending MouseMotionListener or extending MouseListener.
    • F、 Either by implementing MouseMotion Listener or implementing MouseListener.

    正确答案:D

  • 第15题:

    You are implementing a Web page that displays text that was typed by a user. You need to display the user input in the Web page so that a cross-site scripting attack will be prevented. What should you do?()

    • A、Call document.write.
    • B、Call Response.Write.
    • C、Call HttpUtility.UrlEncode.
    • D、Call HttpUtility.HtmlEncode.

    正确答案:D

  • 第16题:

    You need to recommend changes to the DFS infrastructure that meet the company’s techical  requirements.   What should you recommend implementing in each branch office?()

    • A、a DFS namespace server
    • B、a DFS replica
    • C、a standalone DFS namespace
    • D、BranchCache in Distributed Cache mode
    • E、BranchCache in Hosted Cache mode

    正确答案:A,B

  • 第17题:

    Which of the following lists of items all require an HMC to function with POWER5?()

    • A、Running AIX 5.3 Implementing HACMP Implementing Static LPAR
    • B、Implementing Advanced POWER Virtualization Running Linux Attaching RIO drawers
    • C、Implementing VIO Server Implementing Dynamic LPAR Running with SMT turned "On"
    • D、Running AIX and Linux on the same system Implementing CoD Implementing Micro-Partitioning

    正确答案:D

  • 第18题:

    单选题
    You work as a system administrator at Certkiller.com. You are in the process of creating anASP.NET application using Microsoft .NET Framework v3.5.  You receive an instruction from management to create a custom-templated server control. Toensure productivity you need to make sure that the child controls of the newly created servercontrol are identified within the hierarchy of the page. You thus need to identify the interface thatwill accomplish this.  What should you do?()
    A

    You should consider implementing the IRequiresSessionState interface.

    B

    You should consider implementing the ITemplatable interface.

    C

    You should consider implementing the IPostBackDataHandler interface.

    D

    You should consider implementing the INamingContainer interface


    正确答案: A
    解析: 暂无解析

  • 第19题:

    多选题
    You need to recommend changes to the DFS infrastructure that meet the company’s techical  requirements.   What should you recommend implementing in each branch office?()
    A

    a DFS namespace server

    B

    a DFS replica

    C

    a standalone DFS namespace

    D

    BranchCache in Distributed Cache mode

    E

    BranchCache in Hosted Cache mode


    正确答案: D,B
    解析: 暂无解析

  • 第20题:

    单选题
    You are implementing an ASP.NET Web page. The page includes several controls, but only a GridView requires view state. You set the GridView… You need to ensure that the page will omit unneeded view state. Wich @ Page directive should you use?()
    A

    <% Page EnableViewState=”true” ViewStateMode=”Enabled” _ %>

    B

    <% Page EnableViewState=”true” ViewStateMode=”Disabled” _ %>

    C

    <% Page EnableViewState=”false” ViewStateMode=”Disabled” _ %>

    D

    <% Page EnableViewState=”false” ViewStateMode=”Enabled” _ %>


    正确答案: A
    解析: 暂无解析

  • 第21题:

    单选题
    The Company LAN is becoming saturated with broadcasts and multicast traffic. What could you do  to help a network with many multicasts and broadcasts?()
    A

    Creating smaller broadcast domains by implementing VLANs.

    B

    Separate nodes into different hubs.

    C

    Creating larger broadcast domains by implementing VLANs.

    D

    Separate nodes into different switches.

    E

    All of the above.


    正确答案: A
    解析: 暂无解析

  • 第22题:

    单选题
    You are implementing a very simple TCP/IP network. It rarely changes and you would like to use Oracle Connection Manager to filter client requests.  Which naming method can you use?()
    A

    Only host

    B

    Only local

    C

    Either host or local

    D

    Both host and local


    正确答案: A
    解析: 暂无解析

  • 第23题:

    单选题
    You are designing a DNS implementing strategy to meet the business and technical requirement. Which type of zone should you use?()
    A

    Sub Zones

    B

    Standard Primary Zones

    C

    Secondary Zones

    D

    Active DirectoryIntegrated Zones 


    正确答案: B
    解析: 暂无解析

  • 第24题:

    单选题
    You need to recommend an IP addressing strategy for the client computers in the new sales office. What should you recommend implementing in the new sales office?()
    A

    DHCP server roles

    B

    the DirectAccess feature

    C

    the Network Policy Server (NPS) role service

    D

    the Remote Access Service role service


    正确答案: B
    解析: 暂无解析