Archive for the 'reusable code' Category

16 Mar

How to compare dates using XSLT and find the largest one?

While working in SharePoint dataviews, we need to compare dates several times to find out a larger one. While I wondered around this and I see there is no direct function to do this. I found a workaround which I generally use.   1. Create 2 variables from dates. I’m converting both dates to US [...]

15 Mar

How to remove link for SharePoint lookup column from a DataView WebPart using XSLT

Whenever we use a lookup column into the dataview or listview, it displays a link to the lookup item it is referring to. This is the same behavior you see on the backend list views. But sometimes we just need to show data on page and do not need the link to the lookup item. [...]

03 Dec

using RichTextBox control in Sharepoint MOSS 2007

Like me you too came searching for the RichTextField control for SharePoint. But you will be surprised that this is not the one you are looking for. You must be looking for a control which will allow you to create formatted text as shown in below given image. InputFormTextBox is the correct control you will [...]