Microsoft
70-515 · Question #112
70-515 Question #112: Real Exam Question with Answer & Explanation
Sign in or unlock 70-515 to reveal the answer and full explanation for question #112. The question stem and answer options stay visible for context.
Question
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 Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim s As String = Master.CityName End Sub You need to ensure that TestPage.aspx can access the CityName property. What should you do?
Options
- AAdd the following directive to TestPage.aspx.
- BAdd the following directive to TestPage.aspx.
- CSet the Strict attribute in the @ Master directive of the TestMaster.master page to true.
- DSet the Explicit attribute in the @ Master directive of the TestMaster.master page to true.
Unlock 70-515 to see the answer
You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.