Home > Interview Questions > ASP.NET > How do you acces/modify the Master page label from Content page?

How do you acces/modify the Master page label from Content page?

by Spidy   on 18/05/2011   Category: ASP.NET   |  Level: Beginner   |  Views: 1648    |  Points: 25     |  Silver 


using findcontrol. see the sample code below

Label lblName = (Label)Master.FindControl("lblName ");
lblName.Text = "Jas";



« How do you change Master page dynamically at runtime in asp.net?
» How do you handle exceptions in the asp.net web form using error events?
Post Question  |  Question Home

Recent Posts

User Responses


No response found, be the first to review this question.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts