70-515 · Question #113
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…
The correct answer is B. Add the following code segment to the Page_Load method of the page code-behind file. See the full explanation below for the reasoning.
Question
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.MasterPage Public Property Region As String Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub End 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 page's Region property in lblRegion. What should you do?
Options
- AAdd the following code segment to the Page_Load method of the page code-behind file.
- BAdd the following code segment to the Page_Load method of the page code-behind file.
- CAdd the following code segment to the Page_Load method of the Custom.Master.vb
- DAdd the following code segment to the Page_Load method of the Custom.Master.vb
How the community answered
(36 responses)- A6% (2)
- B81% (29)
- C3% (1)
- D11% (4)
Community Discussion
No community discussion yet for this question.