Exposing Master Page Properties
You can expose properties and methods from a Master Page and modify the properties and methods from a particular content page. For example, the Master Page in Listing 5.16 includes a public property named BodyTitle
.
Listing 5.16. PropertyMaster.master
The BodyTitle
property enables you to assign a title rendered in a header tag in the body of the page (see Figure 5.6).
Figure 5.6. Displaying a body title.
Because ...
Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.