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

问题:

[多选] You create a Web page named TestPage.aspx and a user control named TestUserControl.ascx. TestPage.aspx uses TestUserControl.ascx as shown in the following line of code. On TestUserControl.ascx, you need to add a read-only member named CityName to return the value "New York". You also must add code to TestPage.aspx to read this value. Which two actions should you perform?()

A . Add the following line of code to the TestUserControl.ascx.cs code-behind file. public string CityName { get { return "New York"; } } 
B . Add the following line of code to the TestUserControl.ascx.cs code-behind file. protected readonly string CityName = "New York"; 
C . Add the following code segment to the TestPage.aspx.cs code-behind file. protected void Page_Load(object sender, EventArgs e) { string s = testControl.CityName; } 
D . Add the following code segment to the TestPage.aspx.cs code-behind file. protected void Page_Load(object sender, EventArgs e) { string s = testControl.Attributes["CityName"]; }&e

以下不是施工图预算的编制依据有() 工程量清单。 施工图纸及说明。 定额及费用标准。 人工、材料、机械台班预算价格。 多态性是指在一般类中定义的属性或操作被特殊类继承后,可以具有不同的数据类型或表现出不同的行为。 下面说法正确的是() 流体质点的涡量等于流体质点绕自身轴旋转角速度。 对于无旋流动,流体微团存在平动、变形运动和转动。 散度在流动问题中的意义是微团的相对体积膨胀率。 有旋的流场可以有速度位存在。 在UML中,活动图是显示特定用例之间的详细流程。并且显示了它们之间的交互,以及对象之间发送消息的顺序。 十八大报告中提出全党要坚定“三个自信”,具体是指()、()、()。 You create a Web page named TestPage.aspx and a user control named TestUserControl.ascx. TestPage.aspx uses TestUserControl.ascx as shown in the following line of code. On TestUserControl.ascx, you need to add a read-only member named CityName to return the value "New York". You also must add code to TestPage.aspx to read this value. Which two actions should you perform?()
参考答案:

  参考解析

本题暂无解析

在线 客服