October 2010
Intermediate to advanced
1920 pages
73h 55m
English
FindControl with Master PagesIn the previous section, you learned how to modify a property of a control located in a Master Page from a content page by exposing a property from the Master Page. You have an alternative here. If you need to modify a control in a Master Page, you can use the FindControl() method in a content page.
For example, the Master Page in Listing 5.18 includes a Literal control named BodyTitle. This Master Page does not include any custom properties.
Listing 5.18. FindMaster.master


The content page in Listing 5.19