Microsoft
70-515 · Question #2
70-515 Question #2: Real Exam Question with Answer & Explanation
Sign in or unlock 70-515 to reveal the answer and full explanation for question #2. 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 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?
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.