Category: SharePoint 2010

Get Workflow Status Programmatically in SharePoint Using Client Side Object Model C#

This post explains how to get SharePoint list item's workflow status using Client Side Object Model programming, using the below code we can find workflow status id. Because workflow status field internally save the workflow status id only not as name, In that code workflowStatusValue receive a status id as a list item workflow status. Here I've listed workflow status … Continue reading Get Workflow Status Programmatically in SharePoint Using Client Side Object Model C#

Programmatically Add Excel Word Access Content Types SharePoint 2010

Create new project using visual studio "Empty SharePoint Project" template, and then select sandbox solution, and then add new web part, now we call below function to create new Content Template with particular document and add some site column, then its add one document library.        private void ContentTypeAdder()        {            using (SPSite site = new SPSite("http://win7"))            {                … Continue reading Programmatically Add Excel Word Access Content Types SharePoint 2010

Could not load type ‘Microsoft.Office.Server.Search.Administration.SearchContext’

Error Could not load type 'Microsoft.Office.Server.Search.Administration.SearchContext' from assembly 'Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. Fix Click Project properties, select Build tab and then select project platform x64

SharePoint ListItem Versioning and Changes in C#

If we need to enable SharePoint list versioning then navigate List Settings-->Versioning settings and then select radio button of create a version each time you edit an item in this list? Section, optionally limit the number of versions to retain is help to reduce DB size, SharePoint list does not support minor version and draft … Continue reading SharePoint ListItem Versioning and Changes in C#

Deploy ASP.Net project within SharePoint

If you deploy asp.net project within SharePoint site, we can directly access spcontext in object model code. your asp.net project should developed framework 3.5, .framework 4.0 dose not support in this method. Step 1: Copy source folder and paste it on “C:\inetpub\wwwroot\wss\VirtualDirectories\<port>\”   Step 2: Open internet manager (inetmgr), Expand the SharePoint site then we … Continue reading Deploy ASP.Net project within SharePoint

Copy Or Move Documents One Document Library to Another Document Library in SharePoint 2010

Navigate Document Library -->Library Tab "Open with Explorer",after open Windows Explorer then Copy or move Documents within your SharePoint then we can keep all metadata in the documents.

Restore Deleted Items From Recycle Bin in SharePoint 2010

Step 1 If we need change recycle bin setting then Navigate Central Administration --> Manage Web Application -->Select Web Application then select General Setting -->General Setting here we can see the recycle bin setting. Step 2 If we need restore deleted items from recycle bin then navigate Recycle Bin --> Site Collection Recycle Bin --> … Continue reading Restore Deleted Items From Recycle Bin in SharePoint 2010