Just wondering if you know how to accessing controls on a sharepoint master page in code at runtime, I using
System.Web.UI.HtmlControls.HtmlGenericControl logout = (System.Web.UI.HtmlControls.HtmlGenericControl)this.Master.FindControl("logout_switch");
logout.Style["display"] = "block;";
Which seems to find the control but the changes made to that control aren’t reflected on postback eg. the div logout control isn’t visible.
Is this possible in sharepoint master pages ?