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

You are creating an&en


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.   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 page’s Region property in lblRegion. What should you do? ()

  • AAdd the following code segment to the Page_Load method of the page code-behind file. CustomMaster custom = this.Parent as CustomMaster; lblRegion.Text = custom.Region;
  • BAdd the following code segment to the Page_Load method of the page code-behind file. CustomMaster custom = this.Master as CustomMaster; lblRegion.Text = custom.Region;
  • CAdd the following code segment to the Page_Load method of the Custom.Master.cs code-behind file. Label lblRegion = Page.FindControl("lblRegion") as Label; lblRegion.Text = this.Region;
  • DAdd the following code segment to the Page_Load method of the Custom.Master.cs code-behind file. Label lblRegion = Master.FindControl("lblRegion") as Label; lblRegion.Text = this.Region;
参考答案
参考解析:
分类:MCTS(70-515)题库