Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.

Monday, November 12, 2007

Modifying labels in MasterPage From MasterPage user Page

First, here is how to modify a label in the MasterPage from the MasterPage user Page:

Label mpLabel = (Label)Master.FindControl("lblPageTitle");
if (mpLabel != null)
mpLabel.Text = this.Title.ToString();


No comments: