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;...

Thursday, November 26, 2009

Add Lookup Column to SharePoint List Programmatically

In one of my previous article I discussed how to create a SharePoint list programmatically in C#. There I didn’t discuss how we can add lookup field for our newly created list. Let’s see how, this is a sample code. public void createList() { // choose your site SPSite site = new SPSite("http://merdev-moss:5050"); SPWeb web = site.OpenWeb(); ...

Monday, November 23, 2009

Remove Event Receiver in Sharepoint List

In this post I’m going to describe how you can remove an Event Receivers from SharePoint List programmatically. This will be very useful if you have deployed and active custom features, because if you create a custom feature for a custom list, that feature will be added to all the custom lists. Then if you want to create list dynamically and don’t want to add those features you can use this code...

Friday, November 13, 2009

SharePoint charting (Chart inside web part)

In my article on "SharePoint Web Part Development Tutorial" I discussed how we can develop and deploy custom SharePoint web part with visual designing. Now let’s see how we can add a chart for that web part. Finally you will be getting a result like following picture. To create the above chart I’m...

Create SharePoint list programmatically C#

In this article I’m going to discuss how we can create a SharePoint list programmatically in c# and how we can add columns to the created list. Actually this is very simple task; this is a sample code. public void createList() { // choose your site SPSite site = new SPSite("http://merdev-moss:5050"); SPWeb web = site.OpenWeb(); SPListCollection...

Tuesday, November 10, 2009

Use Custom Workflow Actions in SharePoint Designer

In my previous article on "SharePoint Workflow Actions for Designer in Visual Studio" I discussed how to create and deploy a custom workflow action to use in the SharePoint designer.In this article I’m going to discussed how you can use the added action in the SharePoint Designer. First open your...

Friday, November 6, 2009

SharePoint Workflow Actions for Designer in Visual Studio

Using Microsoft Office SharePoint Designer 2007, you can design workflows without writing custom code. Microsoft has provided an article on Create a Workflow which helps you to get started by explaining some key design considerations and providing a basic procedure, but the problem is there are only...

Thursday, November 5, 2009

How to Select a Title for My Article

Your article title plays major role to driving long term search engine traffic. For the Title you have to give the overall idea of your article in simple phrase. The most important thing in article is making sure the title contains a strong keyword phrase. Here I’m going to show you very simple way...

Wednesday, November 4, 2009

How To Make My Site Appear In Google Search

Search Engine Optimization (SEO) Techniques If you search the above topic, in many articles you will see the same things like content is king, write unique content, get more back links etc. I was able to get significant traffic in to my blog within a 3, 4 weeks after starting it, because I used something really different than what you saw in other articles about SEO. This is how I did it. Is the...

Thursday, October 29, 2009

Event Handling In Android

In my previous article I discussed about how to create user interfaces in Android. Here I’m going to show you how you can add event handler to that UI. To do that, first add these two lines between package and class declaration. To do that, first add these two lines between package and class declaration. import...

Android User Interface Design

In one of my previous post I discussed about Creating Android Databases. In this tutorial I’ll discuss simple way to create Android UI using Eclipse and DroidDraw tool which support drag-and-drop of widgets like buttons, labels, text boxes, etc. Displaying the user interface is done by Activity,...

Tuesday, October 27, 2009

Add META Tags To Blogger

META tags provides information about a web page such as who created the page, what the page is about and which keywords represent the page content. They do not affect how the page is displayed. Many search engines use this information when building their indices. By default blogger does not contain...

Monday, October 26, 2009

Blogger Post Title Tip (SEO)

By default in blogger the blog title appears first before appear your post title. If you consider Search Engine Optimization (SEO) that is not a good practice. In this tutorial I’m going to show you how to make the blogger post title come first as following picture. You can follow these simple...

Saturday, October 24, 2009

Wednesday, October 14, 2009

Sort Object ArrayList in C#

You can easily sort an arraylist using its "sort()" method, but how can you sort an ArrayList of Objects? You can get this task done very easily with "IComparer" Interface. As an example let’s get a "Person" object which contains two attributes called "ID" and "Name". Now we need to sort these objects...

Monday, October 12, 2009

Hide Columns in SharePoint Part 2

Note : Before going to use this method you have to make sure all the columns are added to the list.Otherwise you have to remove the added custom form the SharePoint Designer (described in the post) and add it again after adding new column. It is better to use this way if you want hide and change control...