write this code inside child page of masterpage to access a control.
Label lblmsg;
lblmsg = (Label)Master.FindControl("lblTitle");
lblmsg.Text = "I love my india";
This Blog show you how to access Controls of Masterpage.
write this code inside child page of masterpage to access a control.
Label lblmsg;
lblmsg = (Label)Master.FindControl("lblTitle");
lblmsg.Text = "I love my india";
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegisterMembers onlyeBook · Learn .NETCSharp 13 and .NET 9 Scripting Guide (Run .cs Without Projects)Download nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Join the conversation! Your thoughts help the community grow.