Hiding a Single Button on Ribbon and Site Actions Menu
Run following method in the Page_Load method, you can use delegate control or custom control (.ascx) to implement this. protected void Page_Load(object sender, EventArgs e) { } Hide a Ribbon public void HideRibbon() { SPRibbon current = SPRibbon.GetCurrent( this .Page); if (current != null && ! this .Page.Request.IsAuthenticated) { current.CommandUIVisible = false ; } } Hide a Button on Ribbon SPRibbon ribbon = SPRibbon.GetCurrent(this.Page); if (ribbon != null) { SPUser currentUser = SPContext.Current.Web.CurrentUser; if (currentUser.LoginName.Equals("loginname",StringComparison.InvariantCultureIgnoreCase)) { ribbon.TrimById("Ribbon.Library.Actions.OpenWithExplorer"); } Hide Status Bar public void HideStatusBar() { string script = "document.onreadystatechange=fnRemoveAllStatus; function fnRemoveAllStatus(){removeAllStatus(true)};" ; this .Page.ClientScript.RegisterClientScriptBlock( typeof (HideTheRibbon), ...