Saturday, 28 April 2012

Can you access controls on the Master Page without using FindControl() method?

Yes, by casting the Master to your MasterPage as shown in the below code sample.
 protected void Page_Load(object sender, EventArgs e)
{
 MyMasterPage MMP = this.Master;
 MMP.MyTextBox.Text = "Text Box Found";
}