Thursday, December 4, 2008

Change Master page in Runtime ASP.NET 2

the lable lblName is in MasterPage and you want to change it in Code behind.

Label Mylabel = (Label)Master.FindControl("lblName");
Mylabel.Text = "New Text";

No comments:

Post a Comment