单项选择题
You are creating an ASP.NET Web site. The site has a master page named Custom.master. The code-behind file for Custom.master contains the following code segment.Partial Public Class Custom Inherits System.Web.UI.MasterPagePublic Property Region As String Protected Sub Page_Load(ByVal sender As Object,ByVal e As System.EventArgs) Handles Me.LoadEnd SubEnd Class You create a new ASP.NET page and specify Custom.master as its master page.You add a Label control named lblRegion to the new page. You need to display the value of the master pages Region property in lblRegion.What should you do? ()
A.Add the following code segment to the Page_Load method of the page code-behind file. Dim custom As Custom = Me.Parent lblRegion.Text = custom.Region
B.Add the following code segment to the Page_Load method of the page code-behind file. Dim custom As Custom = Me.Master lblRegion.Text = custom.Region
C.Add the following code segment to the Page_Load method of the Custom.Master.vb code-behind file. Dim lblRegion As Label = Page.FindControl("lblRegion") lblRegion.Text = Me.Region
D.Add the following code segment to the Page_Load method of the Custom.Master.vb code-behind file. Dim lblRegion As Label = Master.FindControl("lblRegion") lblRegion.Text = Me.Region
相关考题
-
多项选择题
Whenyouexecutethe"iphelper-address"commandonarouter,whichthreeUDPportsgetenabledautomaticallybydefault?()
A.53(DNS)
B.69(TFTP)
C.515(LPR)
D.161(SNMP)
E.49(TACACS) -
单项选择题
尖锐的戏剧冲突总是在特定的戏剧()中产生和展开。
A.矛盾
B.情境
C.场景
D.人物 -
问答题
采用差额计算法计算、分析各因素变动对材料费用总差异的影响程度。
