Site Definition in SharePoint

Site Definitions are the foundations on which all sites and user templates are built. Site Definition is collection ox XML and .aspx file. Site Definitions are predefined components needs to be included when a site was created in SharePoint server. Site Definition contains information of Web Part , Lists, Features and navigation bars to beContinueContinue reading “Site Definition in SharePoint”

Introduction of SPPersistedObject class

Objective In this article, I will give a high level introduction of SPPersistedObject class and its uses. I will give one sample also to explain uses of this class. SPPersistedObject class This class is inside namespace Microsoft.SharePoint.Administration This is base class for all administration objects. It serializes all fields marked with Persisted attribute to XML.ContinueContinue reading “Introduction of SPPersistedObject class”

Programmatically Fetching User Name of SharePoint site collection using Object Model

Objective In this article, I will show you how to fetch all the user name of a SharePoint site collection using program or Visual Studio. Step1 Create a SharePoint site and add few users in that by configuring the site in SharePoint. I have created a site called “Document Center” and added few users inContinueContinue reading “Programmatically Fetching User Name of SharePoint site collection using Object Model”

Walkthrough on Creating a Task List in SharePoint

Objective In this article, I will give step by step explanation of how to add a task list in SharePoint site. I am going to add a list in existing SharePoint site. Assumption I have created a SharePoint site. I am assuming here, you do have basic idea of SharePoint sites and SharePoint list. WorkingContinueContinue reading “Walkthrough on Creating a Task List in SharePoint”

Inversion of Control

What is Problem? Let, there is a class called Kids.cs. Purpose of this class is to maintain name and age of kids of a particular person. Kids.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication23 {    public  class Kids     {         private int age;         private string name;    ContinueContinue reading “Inversion of Control”

Singleton Pattern

  The Singleton is a design pattern, which instantiates one instance of the class once it is first called, and maintains that single instance throughout the lifetime of the program. Once it is instantiated, all future requests will be through a single global point of access.   Singleton provides a global, single instance by: MakingContinueContinue reading “Singleton Pattern”

Unity Framework

Objective This tutorial will explain step by step explanation of how to use UNITY Framework in code. UNITY Framework is a framework of Microsoft to achieve Inversion of Control Design Pattern. To know more about, what is Inversion of Control and Dependency Pattern design pattern read my previous article Click here. Two very good articlesContinueContinue reading “Unity Framework”

Lambda Expression

 This article will explain about Lambda expression and its usage. This article will also give differences between Lambda expression and Anonymous method. This article will talk about type inference in Lambda expression. This will also talk about delegate type conversion of lambda expression. We will start with a code. This is a very simple codeContinueContinue reading “Lambda Expression”

Events in c#

 Windows based application are message based. Application is communicating with windows and windows is communicating with application by using predefined messages. .Net wrap up the messages with ‘EVENTS’. And .Net reacting a particular message by handling events. Events are the message sent by an object to indicate the occurrence of an event. Event can alsoContinueContinue reading “Events in c#”