摘要: 只知道有个叫Session的东西,可以跨页面保存变量,在它的存在时期。现在又有个叫ViewState的东西,我是没用过,现在也该开始用了,一般是用来保存控件的值或状态。 阅读全文
posted @ 2009-09-12 21:36 张谊 阅读(429) 评论(0) 推荐(0) 编辑
摘要: In this example, I'll create a SharePoint group using the Object Model, add few users in that group - which will be single users as well as the whole AD groups, create a folder inside the existing SharePoint Document library, break it's permissions inheritance to the parent Document Library, and create new permissions model adding to a single user full rights and to newly created SharePoint group read only rights. On the end, I'll check permissions for any given user if (s)he has rights to do th 阅读全文
posted @ 2009-09-12 20:18 张谊 阅读(688) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; using Microsoft.SharePoint; 阅读全文
posted @ 2009-09-12 20:17 张谊 阅读(506) 评论(3) 推荐(1) 编辑
摘要: 列表的EventHandeler: 1.继承SPItemEventReceiver 2.将SPItemEventReceiver中的方法重写就可以了,但是删除的时候要记得是重写Deleting方法 3.部署将dll拷贝到GAC中 阅读全文
posted @ 2009-09-12 20:15 张谊 阅读(793) 评论(1) 推荐(0) 编辑
摘要: ASP.NET缓存概念是什么呢?通常,应用程序可以将那些频繁访问的数据,以及那些需要大量处理时间来创建的数据存储在内存中,从而提高性能。例如,如果应用程序使用复杂的逻辑来处理大量数据,然后再将数据作为用户频繁访问的报表返回,避免在用户每次请求数据时重新创建报表可以提高效率。同样,如果应用程序包含一个处理复杂数据但不需要经常更新的页,则在每次请求时服务器都重新创建该页会使工作效率低下。 阅读全文
posted @ 2009-09-12 20:08 张谊 阅读(574) 评论(0) 推荐(0) 编辑