Programmatically creating folder in SharePoint Document library

Objective In this article, I am going to create folder inside a document library using the SharePoint object model or in other words using .Net code. Assumption I do have a document library called “My Documents”. I am going to add folder this library. Currently the documents in library are as below. Working Procedure UserContinueContinue reading “Programmatically creating folder in SharePoint Document library”

Populating name of files from SharePoint Document library in a drop down list

Objective This article will show how to iterate through SharePoint document library and list out all the file names and bind the list to a drop down list. Working Screen When user will click on button name of the files will get loaded from document library to drop down list.  Step 1 Create a windowContinueContinue reading “Populating name of files from SharePoint Document library in a drop down list”

Configuring connection string using SPPersistedObject

Objective In this article, I am going to show how to use SPPersistedObject to save connection string in config database of web application. I will also show how to configure connection string using ADMIN UI. We really do not need to go and configure the web.config manually. Background On a fine morning, I got aContinueContinue reading “Configuring connection string using SPPersistedObject”

Adding CheckBoxes in SharePoint GridView (SPGridView)

Objective In this article, I am going to show how to add a checkboxes in SPGRidVIew. I will iterate through the SPGridView to find out the selected rows. Step 1  Create a SharePoint project by selecting Web Part template. Choose trust level to Fully. Or in other words deploy into the GAC. Step 2 AddContinueContinue reading “Adding CheckBoxes in SharePoint GridView (SPGridView)”

List Events Handling in SharePoint 2007

Objective The objective of this article is to give a very basic explanation of how to catch an event on a SharePoint list and deploy them programmatically. I will achieve in this article “User will get error message; whenever any item will get deleted from a particular list “. What is Event? Event handling givesContinueContinue reading “List Events Handling in SharePoint 2007”

How to add user in SharePoint site

Objective In this article, I am going to show step by step, how to add an existing windows user to SharePoint site. Step1 Click on Site Actions. then click Site Settings. Step 2 In Users and Permission tab click on People and Groups Step3 Click on New and then select Add Users option. Step 4ContinueContinue reading “How to add user in SharePoint site”

Programmatically adding document to SharePoint Document library

Objective In this article, I am going to add a document through code to a SharePoint document library. I am going to use SharePoint object model to add document. Assumption I do have a document library called “My Documents”. I am going to add document to this library. Currently the documents in library are asContinueContinue reading “Programmatically adding document to SharePoint Document library”

Multiple user insertion in SharePoint list

Objective In this article, I am going to explain, how to insert multi user or more than one user in Share point list. About SharePoint list where value would be inserted There is a list called TestingUser. There is one column in list called UserTest. This column is of type Person or Group. Allow multipleContinueContinue reading “Multiple user insertion in SharePoint list”

Parent Child Content Type using SharePoint Object Model

Objective In this article, I am going to show how programmatically Content type could be fetched. How we could manage parent child relationship of the Content types. Explanation Step 1 I have created two Site Content types. Note: To see how to create Content type sees my other articles on this site. TestParent is parentContinueContinue reading “Parent Child Content Type using SharePoint Object Model”

Programming SharePoint List

Objective In this article, I am going to show how we could work with SharePoint items using object model or in other words using .Net code. I will show you How to add item into the SharePoint list? How to retrieve item from the SharePoint list? How to update item into the SharePoint list? HowContinueContinue reading “Programming SharePoint List”