Accessing the controls of a MasterPage from inside a Web Form

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";

Ebook Download
View all
Learn
View all