|
By Udayakumar Ethirajulu , sou Novanm 26, 2009 Se brib a kòd sa yo sèvi ak rekipere lis la nan bibliyotèk nan dokiman.
SPWeb _web = SPContext.Current.Web;
SPListCollection ListColl = _web.Lists;
fortch (SPList _lst nan ListColl)
{
si (_lst.BaseTemplate == SPListTemplateType.DocumentLibrary)
Novanm 26, 2009 | Tags: MOSS 2007, SharePoint 2007, Charepwen objè ki gen konpòtman egzanplè | Kategori: MOSS 2007, Charepwen objè ki gen konpòtman egzanplè |
By Udayakumar Ethirajulu , sou Novanm 8yèm, 2009
Kreye dosye Resous lè l sèvi avèk vizyèl Studio id
Kopi dosye a resous nan 12 ruch resous katab
GetLocalized metòd soti nan SPUtility li valè yo nan dosye resous
Sentaks:
SPUtility.GetLocalizedString(“$Resous:<<ResourceFileName,ResourceKeyName>>”, “<<ResourceFileName>>”, tan);
Egzanp:
SPUtility.GetLocalizedString(“$Resous:MyResources,Prénoms”, “MyResources”, tan);
Sous echantiyon:
Novanm 8yèm, 2009 | Tags: MOSS 2007, SharePoint 2007, Charepwen objè ki gen konpòtman egzanplè | Kategori: MOSS 2007, Charepwen objè ki gen konpòtman egzanplè |
By Udayakumar Ethirajulu , sou Oktòb 3yèm, 2009
Ka klas SPAlerCollection dwe itilize jwenn Koleksyon an alèt pou itilizatè a.
Se brib nan kòd anba a te itilize yo li tout Jwenn Avètisman yo anrejistre pou itilizatè yo koleksyon sit.
prive GetAlerts anile estatik()
{
SPSite currSite = nouvo SPSite(“http://uday”);
SPWeb currWeb = currSite.OpenWeb();
SPUserCollection […]
By Udayakumar Ethirajulu , sou Oktòb 2yèm, 2009 Yo mete entèval nan travay revèy pou Jwenn Avètisman yo ka mete lè l sèvi avèk setproperty lan pou pwopriyete travay la-imedya-alèt lòd nan stsadm.
Sentaks:STSADM-o getproperty-pn travay-imedyat-Jwenn Avètisman yo-PV <valè pwopriyete> -url <URL nan Site a>
Egzanp:STSADM-o getproperty-pn travay-imedyat-Jwenn Avètisman yo-PV “chak 2 minit” -url http://uday
[…]
By Udayakumar Ethirajulu , sou 1ye oktòb, 2009 Anba a liy nan brib kòd se nan mete ajou infopath XML dosye-a(dosye)
SPWeb _web = SPContext.Current.Web; SPList _list = _web.Lists[“SampleFormLib”];
MemoryStream myInStream = nouvo MemoryStream(item.File.OpenBinary()); XmlTextReader lektè = nouvo XmlTextReader(myInStream);
XmlDocument doc = nouvo XmlDocument(); doc.Load(lektè);
reader.Close(); myInStream.Close();
XmlNamespaceManager nameSpaceManager = nouvo XmlNamespaceManager(doc.NameTable); nameSpaceManager.AddNamespace(“mwen”, “http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-06-11T12:44:57“);
doc.DocumentElement.SelectSingleNode(“mwen:Ki dènye nouvèl”, nameSpaceManager).Inner Tèks = “Sove”; […]
By Udayakumar Ethirajulu , sou Out 7yèm, 2009 Pou jwenn ka entèval nan travay revèy pou Jwenn Avètisman yo dwe Retrieved lè l sèvi avèk yo lòd, ki getproperty nan stsadm.
Sentaks:STSADM-o getproperty-pn travay-imedyat-Jwenn Avètisman yo-url <URL nan Site a>
Egzanp:
Stsadm-o getproperty -pn travay-imedyat-alèt -url http://uday
By Udayakumar Ethirajulu , sou Jiyè 26, 2009 Yo mete Duration a pou New icon nan charepwen (endikatè ki ki montre akote atik nouvo) aksè objè a charepwen WebApplication, li mete valè a pou DaysToShowNewIndicator.
SPWebApplication WebApp = SPWebApplication.Lookup(nouvo Ouri(WebAppURL.Text));
WebApp.DaysToShowNewIndicator = 3;
WebApp.Update();
[…]
By Udayakumar Ethirajulu , sou 1ye fevriye, 2009 SPDisposeCheck v1.3.1 te lage sou MSDN Kòd Galeri, http://code.msdn.microsoft.com/SPDisposeCheck. Zouti sa a ap ede amelyore kalite nan asanble Charepwen ou. Li pral enspekte asanble Charepwen ou epi tcheke ke ou ap kòrèkteman dispoze de objè sèten Charepwen (Objè IDisposable ki gen ladan SPSite ak SPWeb). Se zouti a ki baze sou konseye pedagojik la pibliye nan sa a […]
By Udayakumar Ethirajulu , sou June 28th, 2007 Hi dv,
Anba la a se Kòd ki nan egzanp lan mete ajou kontni nan lis charepwen pwogramasyon lè l sèvi avèk objè ki gen konpòtman egzanplè charepwen.
SPSite Sit = nouvo SPSite(“http://lokalost:21000”); SPWeb entewnet = Site.OpenWeb(); SPList Lis = Web.Lists[“Liv adrès”]; SPListItem ListItem = List.GetItemById(0);
fisèl FullName = string.Empty;
FullName = ListItem[“Prénoms”].ToString() + ListItem[“Prénoms”].ToString(); SPListItem[“FullName”] = FullName; ListItem.Update();
|
|