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

How to create a custom webservice in SharePoint?

Posted on November 23rd, 2015 by Premananda Das

There are numbers of out of the box web services present in SharePoint that will do most of the common tasks like methods for working with list ,sites and sub sites, users and groups etc. For using these web services you need to add the reference of the web service . But if your requirement […]

How to store the sharepoint List or List Item within the recycle bin of the site while deleting it programmatically ?

Posted on November 23rd, 2015 by Premananda Das

Whenever we delete a sharepoint list or list item from the User Interface it get stored within the recycle bin of the site. But when we delete it programmatically it get’s deleted permanently. So what we can do to store the List or List Item within the recycle bin while deleting it programmatically ? Generally […]

Checking current user’s permission on a SharePoint list using C#

Posted on November 23rd, 2015 by Tarunkumar Singh

Sometimes security may be one of the major issues while writing codes. A user who has only read permission can’t add a new list item, can’t edit a list item, can’t delete a list item – In this case if we try to perform any of these operation, it will throw an exception. There may […]

Programmatically Changing an Asynchronous Eventhandler to Synchronous Eventhandler in Sharepoint 2010

Posted on November 23rd, 2015 by Premananda Das

This is a new feature in SP 2010. We can’t implement the same thing with the older versions. We know there are two type of event receivers in sharepoint Synchronous and Asynchronous. Synchronous event will work before the event is completed and Asynchronous event will work after the event is completed. Let’s see how Changing […]

Set The Sharepoint Site Locale According To The Current System Locale

Posted on November 23rd, 2015 by Aniket Banerjee

First of all, you need to add a reference manually to sysglobl.dll. sysglobl.dll is a very tiny assembly. It contains only one class CultureAndRegionInfoBuilder Include the namespace System.Globalization. Add the following code snippet written in C# for achieving it….. string UserSystemLocale = System.Globalization.CultureInfo.InstalledUICulture.ToString(); string CurrentSiteLocale = web.Locale.ToString(); using (SPSite site = new SPSite(“site url”)) { […]