12 2010 档案
摘要:BreakRoleInheritance and AllowUnsafeUpdatesPosted at 2008-11-13 10:21 by Wictor Wilén in SharePoint with 1 comments. I have just struggled a while with a SharePoint Web Part that constantly threw an error, see below. This Web Part is creating a SharePoint list when it is first loaded by a user and i
阅读全文
摘要:[代码]http://dotnetperls.com/list
阅读全文
摘要:http://www.campaignmonitor.com/forums/viewtopic.php?id=3862Background images for Outlook 2007 and Outlook 2010 beta.Net programming | Posted: April 23rd, 2010 | dolbikaaAccording to statistics about 45% of people use Microsoft Outlook as email client. About 10% of people use Outlook 2007. So it is a
阅读全文
摘要:[代码]xlsx文件转换为xls,前提是要在装Excel2007的机器上运行才行。
阅读全文
摘要:http://go.microsoft.com/fwlink/?LinkId=98155 http://excelpackage.codeplex.com/http://excel.codeplex.com/http://exceldatareader.codeplex.com/http://ehl.codeplex.com/http://excelexportlib.codeplex.com/http://npoi.codeplex.com/
阅读全文
摘要:EventHandler给我们在MOSS中开发带来了很大的自由度,很方便地就捕获到在数据操作时的事件,插入相应的业务代码,实现我们的业务逻辑。在使用了好长一段时间EventHandler后,忽然想归纳一下我这段时间在使用EventHandler时遇到的问题,给大家分享一下!1. 在ItemAdding事件或ItemUpdating事件中获取用户输入的值 这是一个很普通的操作,通常我们都会遇到这样一个业务逻辑:只有当用户输入的值符合要求才允许用户添加记录,否则取消该操作;或者在用户添加一条记录时,获取用户输入的值,再去进行其它操作。遇到这些业务,必须的是要在ItemAdding事件中获取到用户
阅读全文
摘要:string employeeProfile = GetWebProperty("EmployeeProfileUserGroup");SetWebProperty("EmployeeProfileUserGroup", pe.DisplayText);static string GetWebProperty(string Name){using (SPSite site = new SPSite(SPContext.Current.Site.ID)){SPWeb web = site.OpenWeb(SPContext.Current.Web.ID);if (web.Properties[N
阅读全文