Set the audience of a publishing page programmatically
Most of the time we want to add publishing pages to pages document library on feature activation for that we normally use module tag to specify file. In file tag we can specify all details, but Target...
View ArticleDeactivate a Feature when Retracting a Solution in SharePoint
Features are force un-installed on solution retraction. When features are force un-installed, no attempt is made to deactivate them (unless they are Farm or WebApplication scoped). For Site and Web...
View ArticleIS SPList exists function
public static bool ListExists(SPWeb web, string listName){ return web.Lists.Cast<SPList>().Any(list => string.Equals(list.Title, listName));}
View ArticleRetrieve the “Top 5” items from a SPList
using (SPSite Site = new SPSite("YourSite")){ using (SPWeb Web = Site.OpenWeb()) { SPQuery DemoQuery = new SPQuery(); DemoQuery.RowLimit = 5; DemoQuery.Query = ""; DemoQuery.ViewFields = "";...
View ArticleMaximum workflows that can be executed per list
Maximum workflows that can be executed per list are 15. After that, the workflow events get queued up as timer jobs, to be picked up by SPTimer service (OWSTIMER.exe)workflow-eventdelivery-throttle is...
View ArticleIncludeTimeValue="TRUE"
By default in CAML query for date column time is not considered for comparison.If you want to compare time of date column in CAML query, you have to include IncludeTimeValue="TRUE" in CAML query.So...
View ArticleDomain Changed results in Some or all identity references could not be...
This is common problem if you have made Virtual image for sharepoint site it might happen if you install your image on pc with different domain.In such case your site will not work as expected.You will...
View ArticleUse of AAM for internet facing sharepoint web application
For internet facing installation of Form based site in sharepoint, if you are accessing site with IP address it will result in following error:Object reference not set to an instance of an...
View ArticleMapping of obsolete class,properties,methods of WSS2.0 to Wss 3.0
As SharePoint 2007 (new version) has became successful in market, many of us wants to migrate sites from WSS 2.0 to Wss 3.0 . Also most of the documentation available on internet is about WSS 2.0 hence...
View ArticlePerForming query across multiple Lists in site collection
Many times we need to search on all lists available within any specific site collection, instead of iterating through all web and then all lists we can use SPSiteDateQuery class.If you want to perform...
View ArticleHandling FormDigest failing Error
Issues faced I was creating new site in siteCollection programmatically from site which is present in another site collection, at that time i got following error messageSystem.NullReferenceException:...
View ArticleCreating custom timer job in sharepoint
Andrew Connell, has posted another excellent article on Creating your own Timer Jobs in MOSS.Links...
View ArticleUpdate List Item without updating Modified and Modified By
Sometimes we want to update List Item without updating ‘Modified’ and ‘Modified By’ properties.For Eg. While Updating List Item Properties from Workflow will update ‘Modified’ and ‘Modified By’...
View ArticleHow to use MOSS “dialog.master” for custom dialog pages in Ur application
MOSS 2007 has one master page named as dialog.master , used by selectpicture.aspx , .. pages. It has Ok and Cancel button. So if you want to use this master page for your dialog page then you have...
View ArticleSharepoint 2007 and PDF integration for indexing
Installing The PDF Ifilter In SharePoint and Registering the PDF Icon with step-by-step instructions on the install process: 1.Install iFilter:Download Adobe PDF iFilter2.Restart PC 3.Add pdf icon to...
View ArticleForm based authentication in SharePoint 2007
For moving SharePoint site in internet zone, first thing required is changing “Authentication Provider”; given below are links that I found on internet regarding Form Based Authentication in MOSS. Form...
View Article