Pages

7 Jan 2014

How to know which W3WP process is attached to Web application in SharePoint?

1.Open command prompt.

2.Type the following command
C:\Windows\System32\inetsrv>appcmd list wp

(here we can see W3WP process and web application details) 

How to hide ribbon controls in NewForm, EditForm, and Dispaly form and created by, modified by information for lists and libraries?





















The following is the CSS code for hiding ribbon bar in list forms.

<style type="text/css">
            #s4-ribbonrow, .ms-descriptiontext, .ms-cui-topBar2, .s4-notdlg,
           .s4-pr s4-ribbonrowhidetitle, .s4-notdlg noindex, #ms-cui-ribbonTopBars, #s4-titlerow,
            #s4-pr s4-notdlg  s4-titlerowhidetitle, #s4-leftpanel-content
             {
                   display:none !important;
             }

            .s4-ca
             {
                  margin-left:0px !important;
                  margin-right:0px !important;
             }

</style>

6 Jan 2014

How to Restrict user to open SharePoint site in SharePoint Designer 2010?

1.Open SharePoint "Central Administration"

2.Click on "General Application Settings" and click on "Configure SharePoint Designer Settings" under "SharePoint Design" section.













3.Uncheck "Enable SharePoint Designer"  and click OK button as shown below.















4.When user is trying to open site in Designer, it will show the following error.