jueves, 8 de agosto de 2013

Trick of the week (hide the SharePoint Ribbon with two code lines)

1. Create a webpart with the name "HideRibbon".

2. Open HideRibbonUserControl.ascx.cs

3. Add the next Reference: Microsoft.Web.CommandUI.

4. Add the next's name spaces: using Microsoft.Web.CommandUI and Microsoft.SharePoint.WebControls

5. Into page load event, add the next two lines of code.

6. Press F5 and add the WebPart into the site.

7. Now the ribbon is hidden.

Oscar Miguel Dominguez Acevedo.

No hay comentarios:

Publicar un comentario