70-515 Fragenkatalog zertifizierung-portal 70-515 70-515 www.zertifizierung-portal.de
Prüfungsnummer : 70-515
Prüfungsnname: TS: Web Applications Development with Microsoft .NET Framework 4
70-515 70-515 70-515 www.zertifizierung-portal.de
QUESTION 2
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.
B. Add the following directive to TestPage.aspx.
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.
Answer: A
Section: themes, caching, page events, maintaining state
70-515 70-515 70-515 www.zertifizierung-portal.de