Custom Webparts

Export SPGridView to Excel spreadsheet in Sharepoint 2007

In my last post I have show you how to retrieve current user profile in Sharepoint 2007, before that I have also posted on how to display custom list items in SPGridView

Today I am going to work on how to export SPGridView items into Excel spreadsheet in Sharepoint 2007 Continue reading…

Retrieve current user profile in Sharepoint 2007

My last post was about Contact / Feedback webpart for Sharepoint 2007

In this post I am going to show you how to retrieve current user profile and show the properties like Title, First name, Last Name etc.
using Microsoft.Office.Server.UserProfiles.UserProfileManager() Continue reading…

Contact / Feedback webpart for Sharepoint 2007

On 12th November, 2009 I have published the Contact / Feedback webpart solution on to Codeplex

You can download the Contact / Feedback webpart from http://contact.codeplex.com/

Comments on this solution are very much appreciated 🙂

Thanks for looking into this

Displaying Sharepoint Custom List items in SPGridView

Here is a simple SPGridView example, which displays rows from a Sharepoint Custom List.

Custom List

Custom List

Displaying custom list rows in SPGridView

Displaying custom list rows in SPGridView

Download complete source code Continue reading…

Lightbox enabled custom webpart, displays images from sharepoint picture library

Here is the simple Lightbox enabled custom webpart which displays the images from sharepoint picture library.

Lightbox enabled webpart

Lightbox enabled webpart

Instructions to use: Continue reading…

Custom Webpart – Displays the latest image from picture library

Here is the simple custom webpart which displays the latest image from picture library.

Latest Image - Displays the latest image from Picture Library

Latest Image – Displays the latest image from Picture Library

Download complete source code Continue reading…

Programatically delete list or library in sharepoint 2007

Here is the simple code for deleting list or library in sharepoint 2007

Download the code

Custom Webpart – Inserts items into sharepoint custom list

Here is the simple custom webpart which inserts items into (Title, Employee Name, Designation) Sharepoint custom list, before executing the webpart first of all you have to create custom list and required fields manually through UI as said below:

Create a custom list, name it as Custom List (you can also choose different name, but make sure to modify the same in the code Continue reading…