Friday, November 30, 2007

SharePoint: Paging your results in SPGridView

To get SharePoint to handle paging in your webparts which are using GridView (SPGridView) you need to do a few tweaks to your code:Just above your grid.DataBind() you need to insert the following code:// Turn on paging and add event handlergrid.PageSize = 10;grid.AllowPaging = true;grid.PageIndexChanging +=new GridViewPageEventHandler(grid_PageIndexChanging);then add the event handler:void

Wednesday, November 28, 2007

SharePoint - Search Customizations

Warning: we have drifted slightly from our initial aim of using only OOB functionality. We are actually writing code which uses the SharePoint object model. The Object model is too sweet to resist ;) and with small changes you can deliver fabulous results. The following is a post about using the KeyWord Query class to customize sharepoint searchKeywordQuery class:This class offers quite an

Thursday, November 15, 2007

SharePoint 2007: Creating a custom advanced search webpart - Part 2

In the first part of this series of posts, we explained how to create a custom advanced search box by default which limits searches to a particular search scope.In this part we will explain how to create a advanced search customization which uses a dropdown to limit results to a particular set of meta data / categories only.Typical search requirements would be that users can limit their search

Sharepoint 2007: Creating a custom advanced search webpart - Part 1

Following the post about the Creating a custom advanced search box in moss 2007 article, I did a few customisations of my own.So let's give a few examples of what can be done with this new toy:Remember that you need to create a web part page, and add a Content Editor Web Part and a Search Core Results web part (as defined by the linked article).1. Creating a search box limited to a single scope (

Monday, November 12, 2007

Finding the SharePoint assembly: Microsoft.SharePoint.dll

When you are developing and you ned to add a Microsoft.SharePoint reference, you need to make sure that you know where the Microsoft.SharePoint.dll is. This and other dlls are found in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\ISAPI

Thursday, November 8, 2007

Creating your own Advanced Search webpart in sharepoint 2007

Tom Clarkson is da man!In the linked post, he gives a great example on how you can create your own custom advanced search box. The great thing about this is that not only can you add your own custom properties as shown in the post prior to this, but you can solve the question we asked in that same post, i.e. the question of actually having dropdowns to narrow down the search options to the

Adding properties to the Advanced search webpart in SharePoint 2007

Jonathon's Blog: Searching Custom Column Values in MOSS 2007Very detailed steps on creating custom properties in the advanced search. Lots of people here asking whether it would be possible to have a dropdown list with the choices available, such that the search options of the users are limited.This is something I am highly interested in, so I'd be interested if someone posts a solution to this.

Wednesday, November 7, 2007

Official Google Blog: It's not about the spam

Official Google Blog: It's not about the spamEver wondered how Gmail catches nearly all its Spam?

Thursday, November 1, 2007

SharePoint WorkFlow Link Dump

Workflow and ASPX formshttp://blogs.msdn.com/sharepoint/archive/2006/12/19/what-about-workflow-and-aspx-forms.aspxSharePoint 2007 Workflows - understanding what you can do with the various workflow types available in SharePointhttp://blogs.interknowlogy.com/rodneyguzman/archive/2007/03/20/12405.aspx