05 2011 档案
摘要:“如果你的世界中只剩一种工具锤子,你会不会试图把所有东西都变成钉子?”虽然很想说不,但是对大多数人来说,答案是会。学到更多的知识有时是一种负担,一旦被洗脑成功,满地找钉子的人大有人在。 虽然很有道理,但我认为现实不允许,很多项目都有规定的期限。中途还有给客户演示效果,往往实际项目中都是按最后上线日期来进行项目规划管理的
阅读全文
摘要:在SharePoint中,SPListItem的Item更新、删除等都会引发引关的Item****事件。虽然我们可以编写相关的事件处理程序来对这些事件进行捕获并处理。但是,如果有这样一个需求:我们在程序中需要更新某个字段,但不希望该字段引发相关的事件时,该怎么办呢?方法有二:1、在程序中(非事件处理程序)中,更新完项内容后调用item.SystemUpdate()方法,而不是item.Update()方法, 在MSDN里有这样一段描述: When you implement the SystemUpdate method, events are triggered and the modifi
阅读全文
摘要:cn:姓名英文缩写,sn:姓,c:CN(国家),l:县市,st:省,title:职位,description:描述,postalCode:邮政编码,postOfficeBox:邮政信箱,physicalDeliveryOfficeName:办公室,telephoneNumber:电话号码,facsimileTelephoneNumber:传真,givenName:名,initials:英文缩写,distinguishedName:CN=姓名英文缩写,CN=Users,DC=aa,DC=bb,DC=com,displayName:姓名英文缩写,co:中国,department:部门,compan
阅读全文
摘要:第一个类,获取AD实例类;AdHerlp.cspublic static class AdHerlp { #region 创建AD连接 /// <summary> /// 创建AD连接 /// </summary> /// <returns></returns> public static DirectoryEntry GetDirectoryEntry() { DirectoryEntry de = new DirectoryEntry(); de.Path = "http://www.cnblogs.com/IsNull/admin
阅读全文
摘要:最近最要在MOSS的项目任务中写一个定时提醒的功能,经过考虑采用Timer job来实现,配置信息采用XML文件 <Items> <Item> <ListUrl> </ListUrl> <Field day="0" name="截止日期" startname="创建时间"> </Field> <Body> </Body> <ToField> </ToField> </Item> </Items>
阅读全文
摘要:public SPWeb GetPersonalWeb(string strAccount) { string strUrl = "http://site:9000/"; SPSite spSite = new SPSite(strUrl); ServerContext serverContext = ServerContext.GetContext(spSite); UserProfileManager userProfileManager = new UserProfileManager(serverContext); UserProfile userProfile =
阅读全文
摘要:部署命令@SET STSADM="c:\program files\common files\microsoft shared\web server extensions\14\bin\stsadm.exe" %STSADM% -o addsolution -filename <<解决方案包名字>>%STSADM% -o deploysolution -name "<<解决方案包名字>>" -immediate -allowGacDeployment %STSADM% -o activatefeature
阅读全文

浙公网安备 33010602011771号