SharePoint Security

The code I am attaching will do the following things Get all users from the site Check if User is Site Admin Get all groups the user belongs to Details page of user on click

event_note
close

The code I am attaching will do the following things Get all users from the site Check if User is Site Admin Get all groups the user belongs to Details page of user on click

Read more

SharePoint

Remove method name from JSON response in Web Service

This post will tell you how to Remove method name from JSON response in Web Service. I had a requirement where i had to receive a json response from a service layer and the response was

event_note
close

This post will tell you how to Remove method name from JSON response in Web Service. I had a requirement where i had to receive a json response from a service layer and the response was

Read more

Posted in C#
Tree view structure for Document library

Tree view structure for Document library

To add a Tree view structure for Document library view, follow these steps: Browse to the view you want to add the tree view to. This must be a list view page (i.e. it won’t

event_note
close

To add a Tree view structure for Document library view, follow these steps: Browse to the view you want to add the tree view to. This must be a list view page (i.e. it won’t

Read more

Posted in OOTB
SharePoint

Send Large files using SharePoint Webservice

This  blog will explain you how to send large files to SharePoint Document Library using SharePoint Webservice I got an issue when I was sending large files to WCF REST service using custom SharePoint MultipleBaseAddressWebServiceHostFactory. The

event_note
close

This  blog will explain you how to send large files to SharePoint Document Library using SharePoint Webservice I got an issue when I was sending large files to WCF REST service using custom SharePoint MultipleBaseAddressWebServiceHostFactory. The

Read more

Posted in C#
SharePoint

SPUser Extentions

Below are methods related to operations on SPUser that may be useful for you.

  The code above is self- explanatory, in case of any doubts do email me

event_note
close

Below are methods related to operations on SPUser that may be useful for you.

  The code above is self- explanatory, in case of any doubts do email me

Read more

Posted in C#
SharePoint

String extensions in C#

These String extensions are useful when the project is quite huge and a lot of coding has to be done. Simply create a class file and add the code below, and use them anywhere throughout

event_note
close

These String extensions are useful when the project is quite huge and a lot of coding has to be done. Simply create a class file and add the code below, and use them anywhere throughout

Read more

Posted in C#
SharePoint

Before and After Properties in List Item Event Receiver

There was a requirement where I had to first validate the Before and After Properties in an ItemUpdating Event Receiver. For e.g. An email should be triggered only if the Status Column in a SharePoint

event_note
close

There was a requirement where I had to first validate the Before and After Properties in an ItemUpdating Event Receiver. For e.g. An email should be triggered only if the Status Column in a SharePoint

Read more

Posted in C#
SharePoint

Get the list of Fields from the entire Site Collection using Powershell

Few months ago I received a requirement for SharePoint 2007 where the SharePoint Site used custom fields through a third party solution. For e.g “Single Line of Text with Regex” So basically you create a

event_note
close

Few months ago I received a requirement for SharePoint 2007 where the SharePoint Site used custom fields through a third party solution. For e.g “Single Line of Text with Regex” So basically you create a

Read more

Posted in PowerShell