|
By Udayakumar Ethirajulu , on November 26th, 2009 Sequenti est ad recipiendum est album of code snippet libraries document.
SPWeb _web SPContext.Current.Web =;
SPListCollection ListColl _web.Lists =;
foreach (SPList _lst in ListColl)
{
si (== _lst.BaseTemplate SPListTemplateType.DocumentLibrary)
November 26th, 2009 | Tags: MUSCUS 2007, SharePoint 2007, SharePoint Object Model | Category: MUSCUS 2007, SharePoint Object Model |
By Udayakumar Ethirajulu , on November 8, 2009
Create Resource fasciculum Visual Bulla IDE
Effingo resource file in 12 alveare resource folder
GetLocalized SPUtility ex methodo ad valores a resource file legerentur
Syntax:
SPUtility.GetLocalizedString(“$Resources:<<ResourceFileName,ResourceKeyName>>”, “<<ResourceFileName>>”, tantum);
Example:
SPUtility.GetLocalizedString(“$Resources:MyResources,FirstName”, “MyResources”, tantum);
Sample Source:
November 8th, 2009 | Tags: MUSCUS 2007, SharePoint 2007, SharePoint Object Model | Category: MUSCUS 2007, SharePoint Object Model |
By Udayakumar Ethirajulu , on October 3rd, 2009
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(“http://uday”);
SPWeb currWeb = currSite.OpenWeb();
SPUserCollection […]
By Udayakumar Ethirajulu , on October 2nd, 2009 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>
Example:STSADM -o getproperty -pn job-immediate-alerts –pv “every 2 minutes” -url http://uday
[…]
By Udayakumar Ethirajulu , on October 1st, 2009 The below lines of code snippet is to update the infopath xml record(file)
SPWeb _web SPContext.Current.Web =; SPList _list = _web.Lists[“SampleFormLib”];
MemoryStream myInStream = new MemoryStream(item.File.OpenBinary()); XmlTextReader reader = new XmlTextReader(myInStream);
XmlDocument doc XmlDocument = new(); doc.Load(reader);
reader.Close(); myInStream.Close();
XmlNamespaceManager nameSpaceManager = new XmlNamespaceManager(doc.NameTable); nameSpaceManager.AddNamespace(“my”, “http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-06-11T12:44:57“);
doc.DocumentElement.SelectSingleNode(“my:Status”, nameSpaceManager).InnerText = “Saved”; […]
By Udayakumar Ethirajulu , on August 7th, 2009 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 -url http://uday
By Udayakumar Ethirajulu , on July 26th, 2009 To Set the Duration for New icon in SharePoint (ex quibus constare potest, deinde ad novum items indicator) et ad obiectum, ad valorem obvius SharePoint WebApplication DaysToShowNewIndicator.
SPWebApplication WebApp SPWebApplication.Lookup =(Uri new(WebAppURL.Text));
WebApp.DaysToShowNewIndicator = 3;
WebApp.Update();
[…]
By Udayakumar Ethirajulu , on February 1st, 2009 SPDisposeCheck v1.3.1 has been released on MSDN Code Gallery, http://code.msdn.microsoft.com/SPDisposeCheck. This tool will help improve the quality of your SharePoint assemblies. It will inspect your SharePoint assemblies and check that you are correctly disposing of certain SharePoint objects (IDisposable objects which includes SPSite and SPWeb). The tool is based upon the guidance published in this […]
By Udayakumar Ethirajulu , on June 28th, 2007 Hi Devs,
The Subter est album content Sample Codicis renovandi Sharepoint programmatically per SharePoint Object Model.
Site SPSite SPSite = new(“http://localhost:21000”); SPWeb Site.OpenWeb web =(); SPList List Web.Lists =[“Address Book”]; SPListItem ListItem List.GetItemById =(0);
string = FULLNAME string.Empty;
= FULLNAME ListItem[“FirstName”].ToString() + ListItem[“LastName”].ToString(); SPListItem[“Full Name”] = FULLNAME; ListItem.Update();
|
|