Archive for category: MOSS - Object Model

Microsoft Office Sharepoitn Server

Copy Sharepoint list items from one site to another programmatically

25 August, 2009 (06:13) | MOSS - Object Model | By: G Vijai Kumar

In my earlier post, I have show you how to Copy items from one list to another, using Sharepoint designer workflow now we learn how to copy list items from one Sharepoint site to another site programmatically
Before executing the code I have created two Sharepoint sites, first is http://fivenumber:5/ and the second http://fivenumber:50/
I have also [...]

Export SPGridView to Excel spreadsheet in Sharepoint 2007

28 July, 2009 (08:38) | MOSS - Object Model | By: G Vijai Kumar

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
Most of the code I have used [...]

Retrieve current user profile in Sharepoint 2007

27 July, 2009 (10:12) | MOSS - Object Model | By: G Vijai Kumar

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()
It is a collection of user profile objects used to access user profile data we need to just [...]

Contact / Feedback webpart for Sharepoint 2007

25 July, 2009 (16:09) | MOSS - Object Model | By: G Vijai Kumar

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

14 July, 2009 (17:08) | MOSS - Object Model | By: GVK

Here is a simple SPGridView example, which displays rows from a Sharepoint Custom List.
Download complete source code

using System;
using System.Runtime.InteropServices;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Serialization;

using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.WebPartPages;

namespace FiveNumber
{
[Guid("e6a48f2e-8f31-4738-8ed6-6629f985956d")]
public class DisplayListInSpGridView : System.Web.UI.WebControls.WebParts.WebPart
{
SPGridView myGridView;
[...]