可学答题网 > 问答 > MCTS(70-515)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You are implementing&#8194


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.LoadDim s As String = Master.CityNameEnd Sub  You need to ensure that TestPage.aspx can access the CityName property. What should you do?()

  • AAdd the following directive to TestPage.aspx. <%@ MasterType VirtualPath="~/TestMaster.master" %> 
  • BAdd the following directive to TestPage.aspx. <%@ PreviousPageType VirtualPath="~/TestMaster.master" %> 
  • 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.&e
参考答案
参考解析:
分类:MCTS(70-515)题库