How to call multiple times “onworkflowItemChanged” event in state machine workflow?

  One of my customer would like to call “onWorkflowItemChanged” multiple times until the he got a specific value in a list item column. I have prepared the following solution to resolve the problem :-   Created a State Machine workflow Added two new states named “DocumentProcessed” and “StopWorkflow”. Set the “StopWorkflow” activity’s state as…


How to programmatically find a control in SharePoint page?

While working on customer issue,I have faced an interesting scenario to find a SharePoint control. I though it’s as easy as in ASP.NET where I have write just one single line to code to find the control in page. Control myControl = this.FindControl(_ControlID); But when it comes to SharePoint, I didn’t get the control in…


Different types of client OM in SharePoint 2010

SharePoint 2010 added one of the coolest feature i.e. Client Object Model. Now you can write code from your client machine and used the newly exposed client Object model. 1. .NET Managed Client – Implemented in .NET CLR. I mean we use this in Web, Windows and Console applications. 1) Microsoft.SharePoint.Client.dll and 2) Microsoft.SharePoint.Client.Runtime.dll. You…


Reason for the client ID of web part like webpartWPQ7

One of my customer would like to know why OOB web part generate the ID like webpartWPQ1, webPartWPQ2 etc 1: <table width="100%" cellpadding="0" cellspacing="0" border="0"> 2:  3: <tr> 4:  5: <td id="MSOZoneCell_WebPartWPQ7" vAlign="top"><table TOPLEVEL border="0" cellpadding="0" cellspacing="0" width="100%"> 6:  7: <tr> 8:  9: <td><table border="0" cellpadding="0" cellspacing="0" width="100%"> 10:  11: <tr class="ms-WPHeader"> 12:  13: <td…


How to create a SharePoint theme and apply to OOB & custom web parts?

Let’s start from creating a custom theme for MOSS 2007 and WSS3.0. Here are the steps :- 1) Copy the “WHEAT” folder from “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\THEMES” and paste it in the same folder. Change the new folder name to “Navdeep”. 2) Rename the WHEAT.INF to NAVDEEP.INF inside the “Navdeep” folder. 3) Open…


How to query lists.asmx to get the recurring events?

  How to query list.asmx to get the recurring events? I have created a calendar List named “MOSS Calander” and Added some recurring events :- To query the recurring items, you have to set the “ExpandRecurrence” property of the SPQuery object to true (If you using the CAML query). SharePoint OM code to get the…


How to setup a custom search for SharePoint sub-site separately? I have created a new sub-site named “Resume Database” under my SharePoint site collection. I added a document library named Resume Upload with the following metadata column:- Resume Name Resume Experience Resume Category   Uploaded some documents and set the metadata properties. Added a new…