当前位置:MCTS(70-515)题库

问题:

[单选] 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. <%@ MasterType VirtualPath="~/TestMaster.master" %><%@ mastertype="" virtualpath="~/TestMaster.master">
B . Add the following directive to TestPage.aspx. <%@ PreviousPageType VirtualPath="~/TestMaster.master" %><%@ previouspagetype="" virtualpath="~/TestMaster.master">
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.

浙西词派 人民法院审理(),应当进行调解,但不应久调不决。 一般案件。 离婚案件。 一切案件。 继承案件。 OMT和UML都属于结构化开发方法。 结构布局上的疏密安排有助于文本内容的有效表达,吸引读者,因此在文本结构安排上要尽可能多进行疏密变化。 按照马克思主义的民族定义,民族是人们在历史上形成的一个有着()的稳定的共同体。 共同的祖先、共同的血统、共同的历史和共同风俗习惯。 共同的血统、共同的历史、共同风俗习惯和共同宗教信仰。 共同的祖先、共同的语言、共同的风俗习惯和共同文化。 共同语言、共同地域、共同经济生活以及表现在共同文化上的共同心理素质。 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?()
参考答案:

●  参考解析

本题暂无解析

在线 客服