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

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 […]

Send Email in Sharepoint using SPUtility.SendEmail using HTML tags.

Posted on November 23rd, 2015 by Kumari Sony

Send Email in Sharepoint using SPUtility.SendEmail using HTML tags. SPUtility.SendEmail has 4 overloaded method in Sharepoint for sending email to any email address. I will discuss mainly 2 methods which can handle every type of html email body in Sharepoint. 1) SPUtility.SendEmail(SPWeb web, bool fAppendHtmlTag, bool fHtmlEncode, string to, string subject,string htmlEmailBody) Most of the […]

Programmatically Retrieve Local Path of a Web Application

Posted on November 23rd, 2015 by Kaushik Mohanty

Sometimes we might need to programmatically retrieve the physical / local path of a web application and to achieve this we can use the code snippet provided below.. using (SPSite oSite = new SPSite(“your site url”)) { string physicalPath = oSite.WebApplication.IisSettings[SPUrlZone.Default].Path.ToString(); } Over here we have taken an instance of our site and then trying […]

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”; […]

All People View hidden in SharePoint 2010

Posted on November 23rd, 2015 by Saroj Dash

The “All People” view is a very convenient way of listing out all the users having access to the SharePoint site. When a user navigates to the “People and Groups” section in a SharePoint 2007 site, a link called “All People” is available on the left hand navigation. Clicking on this link brings up a […]