public void HideRibbon(System.Web.UI.Page page)
{
SPRibbon current = SPRibbon.GetCurrent(page);
if (current != null)
{
current.CommandUIVisible = false;
current.Visible = false;
}
}
And call this function:
HideRibbon(this.Page);
{
SPRibbon current = SPRibbon.GetCurrent(page);
if (current != null)
{
current.CommandUIVisible = false;
current.Visible = false;
}
}
And call this function:
HideRibbon(this.Page);
No comments:
Post a Comment