PrepAway - Latest Free Exam Questions & Answers

You need to display the value of the master page’s Region property in lblRegion

You are creating an ASP.NET Web site. The site has a master page named Custom.master. The codebehind 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?

PrepAway - Latest Free Exam Questions & Answers

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 codebehind
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 codebehind
file.
Dim lblRegion As Label = Master.FindControl(“lblRegion”)
lblRegion.Text = Me.Region

Explanation:
http://www.test4pass.com/70-515-exam.html
http://pdf.it-pruefungen.de/70-515.pdf
http://www.slideshare.net/bhupey/latest-70-515-exam-braindumps


Leave a Reply