I received a request from business to restrict site editor not to use OOTB fonts and styles while they edit the contents of “Content editor web part” in SharePoint 2010. This is nice to have if you want consistent look and feel across the site without much end end-user training.&... [More]
We have upgraded a SharePoint intranet site form SharePoint 2007 to 2010. While I was fixing the minor issues in new site I came across this issue. I could not create any document in document library because the “New Document” option was greyed out in ribbon as shown below.
I had a requirement in past where I need to create an InfoPath form which will be reusable for other custom solutions.
I have decided to create a re-useable template in InfoPath 2010. I think it’s worth showing the steps.
I have created employee info form which was going to be used aga... [More]
The SharePoint 2010 server is always set to a specific time zone. Users from all over the world can change the time zone by using “My regional settings”. I wanted to achieve this programmatically as a batch operation.
To do this, I have used the following code.
SPRegionalsettings spReg... [More]
In the following article I will explain how to change SharePoint 2010 authentication mode. In the following example I will change authentication provider of SharePoint 2010 web application from windows authentication to claim base authentication.
To do this you need to user SharePoint 2010 ma... [More]
Deploying and testing solution to SharePoint online is different from SharePoint on premises environment. For SharePoint online we can only create sandbox solutions which are site collection scoped.
There are two options for SharePoint online testing environment
1. Create new site collection
Our ... [More]
I came across a scenario where my client wants SharePoint extranet site contents look and feel consistent. The site have many sub sites and which lot of publishing pages, editors can create pages, add content editor web part and add contents.
The request routed to me about deleting some custom styl... [More]
I got this error in ULS log file while using one SharePoint application which was developed by third party. I have checked the code and it was disposing the SP objects correctly.
The site was running really slow, and it takes about 40 seconds to load the home page.
Our application... [More]
In SharePoint only a user can connect a WSRP viewer web part to a trusted producer. Any producer that has been configured for use in the farm by the SharePoint administrator is known as trusted producer. End users are restricted to add trusted producers and cannot override the settings so that ... [More]
I have come across a business requirement, while implementing this I need to get publishing site page layout on sharepoint 2010 using server object model.
After a little research I managed to do this, I think it is worth to share code with you guys.
The code below was used to get the default page ... [More]