|
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 21st, 2009
Item vel Updating Item Updated Event in SharePoint 2007 occurs twice, si bene valeant in checkout requirit bibliotheca document.
Inveni haec Lorem habemus hac Microsoft.
Reprehendo valorem vti_sourcecontrolcheckedoutby in BeforeProperties et AfterProperties, et si null values sunt eventus tunc […]
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 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 June 12th, 2009
Si velis ut update InfoPath xml file, quod per exemplum in rerum / aut per aliquod medium Webparts.
While the execting Item.Update() sequitur error faciam. While updating the InfoPath xml file in ListItem the file and ListItem object getting disconnected.
Item.File.Update() solvere te egredientur.
StackTrace […]
By Udayakumar Ethirajulu , on February 16th, 2009 The real power of Office SharePoint Server 2007 et 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 formidable; the complexity of your SharePoint environment can increase by orders of […]
By Udayakumar Ethirajulu , on September 17th, 2008 Hoc tamen infra quaeretur, cum possedi in obiecto exemplar adaequationis profile.
Updates sunt currently aedilibus fierique petitiones GET. Ad patitur updates super GET, statuet 'AllowUnsafeUpdates’ rebus in SPWeb
Add web.AllowUnsafeUpdate verus =; Ad hanc rem.
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();
|
|