October 16, 2007

FindControl on a MasterPage

When you need to use FindControl() on the Controls placed on a page inside a MasterPages layout, first you have to retrieve the ContentPlaceHolder that holds the page’s elements ( Master.FindControl(“myContentPlaceHolder”) ) and use FindControl on the ContentPlaceHolder.

No comments: