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"; }
No comments:
Post a Comment