How to run SharePoint code with Elevated Privileges ?

SharePoint elevated privileges, site collection administrator code RunWithElevatedPrivileges is a class in SharePoint which comes under SPSecurity namespace. It allows developers to create the code that runs as the System Account instead of the logged in user, essentially giving that user Administrator Level Permissions in a specific space. What are the security risks in it ? So there is … Read more

Introduction to Linq to SharePoint

Introduction to Linq to SharePoint LINQ is a way to access external data sources.SharePoint Foundation 2010 comes with its own LINQ to SharePoint provider.The namespace which contains the provider is Microsoft.SharePoint.Linq.dll. LINQ provides strongly typed classes, this is an advantage of LINQ over CAML query.Another advantage of LINQ is that Visual Studio provides IntelliSense to … Read more

Is it important to dispose an object in SharePoint ?

SharePoint foundation 2010 and SharePoint server 2010 object model contain objects that implement the IDisposable interface. Object disposal is very important in SharePoint. What is Disposing Object? Sharepoint foundation 2010 and sharepoint server 2010 object model contain objects that implement the IDisposable interface.You should explicitly dispose those sharepoint objects that implements IDisposable when you are … Read more

What is Parent Content Type in SharePoint 2010?

What is Parent Content Type in SharePoint 2010? As you know content type in SharePoint gives re-usability features. Parent Content Type is a hierarchical relationship between two content types. Parent Content Type defines the properties for a child content type which inherits all properties of parent content type. For Eg Lets create a document library … Read more

C# code to create, update and delete SharePoint List items

In this blog, we will perform Create, Update and Delete on SharePoint list items using C# code. You may be interested in reading some of the important blogs – CAML Query in SharePoint, SharePoint 2013 Tutorial, SharePoint 2013 important interview questions. What is SharePoint List? SharePoint List is similar to a table in SQL database and contains data in rows and … Read more