I have a master page Site.Master with a button inside. In my child page, his master page is Test.Master. Test.Master is a Nested Master Page from Site.Master.
From my child page, i want access this button with my code below :
Button mybutton = (Button)this.Page.Master.FindControl("LoginButton");
mybutton.Visible = false;
But the mybutton can't access and return me null. So i have an error and can't change the visibily.