Setting/ Accessing values of Controls on the Master Page - ASP.NET

1 view
Skip to first unread message

Justin

unread,
Oct 16, 2008, 3:24:39 AM10/16/08
to Tech Posts and Tips
Label mpLabel = (Label) Master.FindControl("lblPageHeader");
mpLabel.Text = "Change Password";

Now if there is label called lblPageHeader in master page, it can be
easily accessed and modified using this code.
Reply all
Reply to author
Forward
0 new messages