nerdexam
Microsoft

70-515 · Question #23

70-515 Question #23: Real Exam Question with Answer & Explanation

The correct answer is A. Add the following code segment to the code-behind file of the content page.. See the full explanation below for the reasoning.

Question

You are developing an ASP.Net web application. The application includes a master page named CustomerMaster.master that contains a public string property name EmployeeName application also includes a second master page named NestedMaster.master that is defined by the following directive. <%@ Master Language="C#" MasterPageFile="~/CustomMaster.Master" CodeBehind="NestedMaster.Master.cs" Inherits="MyApp.NestedMaster"%> You add a content page that uses the NestedMaster.master page file. The content page contains a label control named lblEmployeeName. You need to acces the EmployeeName value and display the value within the lblEmployeeName label. What should you do?

Options

  • AAdd the following code segment to the code-behind file of the content page.
  • BAdd the following directive to the content page.
  • CAdd the following code segment to the code-behind file of the content page.
  • DAdd the following code segment to the code-behind file of the content page.

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice