Hari.Views.Technology.Net
C#.Display() ;ASP.NET.Display() ; SharePoint.Display();
HariEdge - Haris views on Cutting Edge Technology!

SharePoint Event Receivers – ItemUpdated, itemUpdating, beforeProperties, afterProperties

On my recent project we were using ItemAdded event to send custom emails to Tasks assigned by a SharePoint workflow. One requirement was the ability to reassign the Task if required. To do this I had to Check the "Assigned To" property and then reassign if required.. Having had trouble with beforeProperties and afterProperties I googled for it and came across this wonderful link: http://www.synergyonline.com/blog/blog-moss/Lists/Posts/Post.aspx?ID=25 definitely a good read that will save anyone a lot of pain J HTH, Hari ...<< MORE >>

Writing to a SharePoint List using Web Services leveraging Batch Updates

It is possible to write to a SharePoint List using SharePoint web Services. This is very useful in scenarios where you might want to integrate 3 party data into your portal (through a scheduled task) and when you do not have access to running scripts on the SharePoint server itself [thus not allowing you to make use of the SharePoint Object model). I am using VS 2008 and .Net 3.5 SP1. The reason I am mentioning the environment is because of the different ways I had to configure my web service reference (as opposed to VS 2005 ...<< MORE >>

Getting SPUser from SharePoint List Column

In the project I was working on right now, I had to get a User field from a SharePoint User colum. The value is stored as a lookup column and in order to get it as a SPUSER I had to write the following utility method public static SPUser GetUser(string columnValue, SPField userField) { SPFieldUser field = (SPFieldUser)userField; SPFieldUserValue fieldValue = (SPFieldUserValue)field.GetFieldValue(columnValue); return ...<< MORE >>

Active Directory in .Net 3.5

using the .Net 3.5 Active Directory Libraries - Retrieving more than 1000 users - Last Login value << MORE >>

Understanding Web Applications, Site Collection and Sites

So if you have been developing or using SharePoint you have definitely come across these terms. The best way I have come up with to understand them is to compare them to a Condo Complex (or Flats as known in India J) Web Application An empty piece of land is the Web Application. You have a placeholder for building something, but as such it is pretty much empty. This is true in case of a SharePoint web Application. When you create a web application using Central Administration, *unless* you create a Site Collection, you can't access it. If ...<< MORE >>

SalesForce.Com  Part 1 – Finding out what to do? :)

After hearing a lot of talk about "Cloud Computing" and also about "Sales Force" I decided to look more into SalesForce this weekend. After my brief experience with salesforce.com, though a very interesting and intriguing one, I decided to blog about it in a series of Posts as I am quite positive that I will be playing around with it for the next 2-3 weeks. So my first step was to look at http://www.SalesForce.com. And there was a lot of information there and when I mean lots, I literally mean tones and tones of information. So there was cloud ...<< MORE >>

Gacutil location in VS2008

Microsoft decided to change the location of gacutil when you install vs2008! The new location is : C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin I have now added this to the "Path" environment variable so that I can use it from any command prompt.. HTH Hari ...<< MORE >>

Starting computer remotely

To restart a computer remotely you can run the shutdown command. Shutdown /r /f /m \\serverName /c "Restarting frozen computer" Hari ...<< MORE >>

Accessing Cache in a SharePoint List Item event Receiver

There are times when for performance reasons you might want to store things in the Application cache. The same applies to SharePoint also. In our recent project we had to store some configuration information in a SharePoint list that would rarely change. So instead of reading it from the SP list every time we decided to store it in the Cache. This was easy to do as we did it inside a web part. And since we can hook up to the List modifications through Event Receivers we planned to clear the cache in the event code. ...<< MORE >>

Configuring MOSS for AJAX 3.5

As I was playing around developing and testing the Telerik controls within a MOSS env, I found a nice post explaining how to configure MOSS / SharePoint for AJAX in their web site. Here is the link… http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html HTH Hari ...<< MORE >>