My Blogs on Sharepoint

How to hide "Respond to this Survey" when a user has already responded to the Survey

  1. The Rendering Template for the Survey List is in the defaulttemplates.ascx control under...

Author: Pavan*Kumar Date: 03/19/2010

Option1 : Using a custom HttpModule to redirect to a custom-mngsiteadmin page. This approach ensures...

Author: Pavan*Kumar Date: 10/15/2009

Some of the WSS 3.0/MOSS API's which fires the query SELECT TOP 2147483648

§    list.Items.XmlDataSchema   §    list.Items.Xml ...

Author: Pavan*Kumar Date: 10/09/2009

How to use OrderBy using GetListItems method of SiteData.asmx (SPS 2003)

Sample code -------------- SiteData.SiteData srvSiteData = new SiteData.SiteData();...

Author: Pavan*Kumar Date: 07/14/2009

Custom Field Controls in Data Form webpart does not save data in Database

Any input control for that matter, a simple custom field control with a single text box into the...

Author: Pavan*Kumar Date: 05/26/2009

How to customize the Item Form pages for the SharePoint Lists such as NewForm.aspx, DispForm.aspx and EditForm.aspx

Item form pages are the pages created based on the "Forms.aspx" as the setup page which is...

Author: Pavan*Kumar Date: 05/05/2009

Page Editing Toolbar - Problem with submit for approval node in the quick access

Came across an interesting issue with the quick access area in the page editing toolbar last week....

Author: Pavan*Kumar Date: 04/16/2009

How to Retain/Preserve "Modified By" while checking in a file

SPSite mySite = new SPSite("<SiteURL>"); SPWeb myWeb = mySite.OpenWeb(); SPFolder myList =...

Author: Pavan*Kumar Date: 04/14/2009

Working with MWSDefault.master page along with meeting workspace definition

  Recently I came across an issue with a custom master page created based on the OOB...

Author: Pavan*Kumar Date: 04/09/2009

State machine workflow with delay activity

State based workflow that has a DelayActivity. The DelayActivity never fires and errors out...

Author: Pavan*Kumar Date: 04/09/2009

Small Search control which is rendered in default pages of Sharepoint is a delegate control which is...

Author: Pavan*Kumar Date: 03/24/2009

Custom wiki site definition with custom document template for creating wiki pages

Architectural behavior of wiki site definition and the wiki page library 1. When a site is created...

Author: Pavan*Kumar Date: 02/24/2009

Following are the two steps to implement this requirement in the supported way and its quite easy,...

Author: Pavan*Kumar Date: 02/18/2009

How to create custom view pages with a custom web part for the list definition - SharePoint WSS 3.0 / MOSS 2007

The view pages for the list are created based on the “ViewPage.aspx” in the C:\Program Files\Common...

Author: Pavan*Kumar Date: 02/18/2009

Code sample for a Asynchronous webpart

One of the requirements which I had encountered was to write a Asynchronous webpart which would show...

Author: Pavan*Kumar Date: 02/16/2009

Is Null predicate not working with TargetAudience

Assume you have enabled Target Audience on your list. While adding list items there would be...

Author: Pavan*Kumar Date: 02/11/2009

How to import a listitem to a list using SPImport API

  <Watch this post for more updates>

Author: Pavan*Kumar Date: 01/07/2009

The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again

Calling BreakRoleInheritance(false)on a List, internally flips the AllowUnsafeUpdates flag to false,...

Author: Pavan*Kumar Date: 12/31/2008

Property does not exist or it is used in a manner inconsistent with the schema settings while using FullTextSearch

While trying to query custom managed property using FullText Search getting an error "Property does...

Author: Pavan*Kumar Date: 11/24/2008

Getting an "401 Unauthorized" exception while trying to create User Profile in sharepoint through ASP.Net application running on a different website

Add the following register tag in your aspx page <%@ Register Tagprefix="SharePoint"...

Author: Pavan*Kumar Date: 11/17/2008

How to change a multi line text field to allow unlimited length in a document library

There is a restriction on number of characters (255 characters) allowed for a Multi line text field...

Author: Pavan*Kumar Date: 11/17/2008

How to obtain the user identity on My Profile page of MySite

Had a scenario where in I had to get User Identity of one of my colleague in My Profile page of...

Author: Pavan*Kumar Date: 11/14/2008

Getting an error "Unable to connect to database" on MOSS site

Check if you have a dll called Security.dll in your bin folder of MOSS. Why does it fail? We have...

Author: Pavan*Kumar Date: 11/11/2008

Updating Metadata of a custom field in SPS 2003 having a value '=' using Front page RPC

Added a new custom field to a document library, wanted to update the metadata of the custom field...

Author: Pavan*Kumar Date: 08/11/2006

Moving documents across sites with metadata using SPS object Model

Code snippet to move documents across sites with metadata along with version history using SPS...

Author: Pavan*Kumar Date: 08/07/2006