Monday, December 28, 2009

ADD|Update|Delete Item SharePoint Web Services

In one of my previous article I discussed how we can retrieve data in a SharePoint List Using its Web Services. In this post I’m going to discuss how we can update a SharePoint list using Web Services. Please refer my previous article on "SharePoint List Web Service GetListItems" to learn how to add Web References to your project. Then you can use the following sample codes to Update SharePoint lists. Updating...

Thursday, December 17, 2009

SharePoint List Web Service GetListItems

In this post, I’ going to discuss how we can retrieve data from a SharePoint List using its Web Services. First to know about SharePoint Web Services please refer this. We can user List Web Service which provides methods for working with SharePoint Lists, Content Types, List Items, and Files to read...

Wednesday, December 16, 2009

SharePoint List GUIDs, How to Find?

In this post I’m going to discuss about an easiest way to find GUID of a SharePoint list and a View. If you are using the MOSS 2007 there is straight forward way to get the List GUID, these are the steps. 1. Access the list via your browser. 2. Go to Settings --> List Settings and right-click on the "Information management policy settings" links and choose Copy Shortcut. 3. Paste the URL and...

Thursday, December 10, 2009

Add User To SharePoint Group Programmatically

Let’s see how we can programmatically add a user to existing SharePoint user group . You can use the following method which has two string parameters, one for group name and other for user login name for get the above task done. public void addUserToGroup(string groupName, string userLoginName) { string strUrl = "http://mysite:5050/"; using (SPSite site = new SPSite(strUrl)) { ...

Wednesday, December 9, 2009

Add Item To List With LookUp Column Programmatically

In my previous posts on "Working With SharePoint List" I have discussed how we can Read, Add and Update SharePoint List. If you have to add new Item to a list which has lookup column, you have to follow a different procedure. If you look at the following figure, you can easily understand what I'm...

Tuesday, December 8, 2009

Create SharePoint List View Programmatically

In this post I’m going to describe how you can programmatically add a view to SharePoint list or Document Library. You can get this work done by using SPViewCollection.Add Method (Microsoft.SharePoint), here is a sample code, public void createListView() { SPSite site = new SPSite("http://merdev-moss:5050/testsara"); SPWeb web = site.OpenWeb(); ...

Add Permission Level To SharePoint User Group

In this post I'm going to discuss how you can add a permission level (Read, Contribute, Full Control, etc) to a SharePoint user group. Here is a sample code, public void addPermissionToGroup() { SPSite site = new SPSite("http://mysite:5050/"); SPWeb spWeb = site.OpenWeb(); string permissionName = "Read"; string groupName = "Project Manager"; ...

Wednesday, December 2, 2009

Add Menu Bar To Blogger Blog

I was able to add a nice multilevel dropdown menu to my blog. In this post I’m going to discuss how you also can add it to your blogger blog. Here I’m using pure CSS multilevel menu generated by Free CSS Drop Down Menu Generator. You can’t use the code directly in blogger without some modifications;...