visiability a panel in masterpage
-
I have a panel in masterpage.how can I change the visiabillity of that panel from codebehind of another page like homepage?
-
I have a panel in masterpage.how can I change the visiabillity of that panel from codebehind of another page like homepage?
-
I have a panel in masterpage.how can I change the visiabillity of that panel from codebehind of another page like homepage?
Hi... You can get the refernce of Master page control like this and handle as you need Panel pn = (Panel)Master.FindControl("Panel1"); Response.Write(pn.ID); pn.Visible = false;
-
I have a panel in masterpage.how can I change the visiabillity of that panel from codebehind of another page like homepage?
Cast the reference in
Page.Master
to the specific type of your master page class, then you can access it's controls. Example:((MyFabulousMasterPage)Page.Master).MyGreatPanel.Visible = false;
Despite everything, the person most likely to be fooling you next is yourself.