Categories

Updated: 06/01/2006

ASP.NET 2.0 Referencing Master Page Members

In this tutorial you will learn about reference Master Page Mebers, add property to Master Page, expose Master Properties. Members of the Master page can be referenced by content pages. These members can be methods, properties or controls. The constraint for property reference is theat the property has to be declared as public members of the master page. They could be public page scope variables, public propertis and public methods. Let us work out a simple example. The developer wants to set the title of a content page or to add a style sheet on a per page basis. Code will have to be added to the Page_Load event. The Header property on the Page class exposes the content of the&< head &> tag as programmable entities.
©2019 A--9.com