" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

SharePoint Groups vs. SiteGroups | Mindfire Solutions

Posted on November 23rd, 2015 by Kaushik Mohanty

Using SharePoint object model we can pull out all the cross-site groups either by using SPWeb.Groups or by using SPWeb.SiteGroups. Then what is the difference between the two? SPWeb.Groups will allow you to pull out only the groups which have some / any kind of permissions defined within the site. SPWeb.SiteGroups will pull out all […]

Update vs. SystemUpdate for SharePoint List Item

Posted on November 23rd, 2015 by Kaushik Mohanty

What is the general approach we follow when we try to add / edit a SPListItem using the SharePoint object model? Yes I know it! Almost everybody will have a common answer to this (which is something similar to what is provided below). SPListItem item = SPList.Items.Add(); item[“Column1”] = “value for column 1”; item[“Column2”] = […]

How to customize the search results of a search core result web part in SharePoint ?

Posted on November 23rd, 2015 by Premananda Das

In SharePoint, if we want to perform a search within a predefined scope then we can go for two out-of-the box web parts. One is the search box web part and the other one is search core results web part. The search box web part contains a dropdown and a textbox .The dropdown contains the […]

Enabling Application Error details in SharePoint 2007 and SharePoint 2010.

Posted on November 23rd, 2015 by Kumari Sony

Most of us would have encoutered the common error “Unexpected error has occured” many times  in Sharepoint 2007 and Sharepoint 2010 which does not give any details about how and why the error occured. In Sharepoint 2007, we can track the error by modifying 2 parameters in web.config of our web appication. i.e. by setting […]

How to programmatically create a custom permission level for a specific SharePoint site

Posted on November 23rd, 2015 by Chandrakant Jha

The  code  below shows how to programmatically create a custom permission level for a specific SharePoint site : using (SPSite osite = properties.Feature.Parent as SPSite) { using (SPWeb oweb = osite.OpenWeb()) { SPRoleDefinition roleDefinition = new SPRoleDefinition(); roleDefinition.Name = “Custom Permission Level”; roleDefinition.Description = “This Permission level has custom set of rights defined within it”; […]