>

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

Programmatically Retrieve List of Document Libraries

The following code snippet is used to retrieve the list of document libraries. SPWeb _web = SPContext.Current.Web; SPListCollection ListColl = _web.Lists; foreach (SPList _lst in ListColl) { if (_lst.BaseTemplate == SPListTem…

How to Use Resource File in SharePoint 2007

Create Resource file using Visual Studio IDE Copy the resource file into 12 hive resource folder GetLocalized method from SPUtility to read the values from resource file Syntax: SPUtility.GetLocalizedString(“$Resources:<<Res…

Item Updating or Updated Event Occurs twice in Document Library

Item Updating or Item Updated Event in SharePoint 2007 occurs twice, if require checkout option is enabled for document library. I found the following workaround from Microsoft Support for this issue. Check the value of vti_sourcecontrolchec…

Programmatically Read Alerts for Users in Site Collection

SPAlerCollection class can be used to get the Alert Collection for the User. The below code snippet is used to read all alerts registered for the site collection users. private static void GetAlerts() { SPSite currSite = new SPSite…

How to set the Interval for Alerts in SharePoint 2007

To set the timer job interval for alerts can set by using the setproperty for the property job-immediate-alerts command in stsadm. Syntax:STSADM -o getproperty -pn job-immediate-alerts –pv <property value> -url <URL of the Site> …

How to Edit InfoPath XML File in Forum Library Programmatically in SharePoint 2007

The below lines of code snippet is to update the infopath xml record(file) SPWeb _web = SPContext.Current.Web; …

Get Timer Job Interval for Alerts

To get the timer job interval for alerts can be retrieved by using the getproperty command in stsadm. Syntax:STSADM -o getproperty -pn job-immediate-alerts -url <URL of the Site> Example: STSADM -o getproperty -pn job-immediate-alerts…

Set Duration for New Icon Indicator in SharePoint

To Set the Duration for New icon in SharePoint (the indicator which shows next to new items) access the SharePoint WebApplication object and set the value for DaysToShowNewIndicator. SPWebApplication WebApp = SPWebApplication.Lookup(new Uri…

“The file has been modified by SHAREPOINT\system” Error while Updating InfoPath xml file in SharePoint Library

If you try to update the InfoPath xml file through object model in events/WebParts or through any medium. While execting the Item.Update() will cause the below error. While updating the InfoPath xml file in ListItem the file and ListItem object ge…

SharePoint Diagnostics (SPDiag) Tool for SharePoint Products and Technologies

The real power of Office SharePoint Server 2007 and Windows SharePoint Services 3.0 is that they can be endlessly customized to meet a wide variety of business needs. The Protean nature of SharePoint is at once its most powerful feature and its most fo…