PHP:
public void ShowBlackBarButtonsPanel(string panelName)
{
Control pnl = this.FindControl(panelName);
pnl.Visible = true;
}
The above snippet is my Master Page.
From my page I set
Master.ShowBlackBarButtonsPanel("A Panel Name");
However, I get a "Object reference not set to an instance of an object." error as its not finding the control in my master page.
The panel name defo exists, what am i doing wrong?