摘要: 一)注册你的Web Part 作为一个SafeControl 作为一个安全办法,Windows SharePoint Services 要求你在Web.Config文件中注册Web Part’s assembly和namespace作为一个Safecontrol。 下面将一个WebPart Assembly注册成一个SafeControl,编辑c:"inetpub"wwwroot"web.conf... 阅读全文
posted @ 2008-05-16 16:34 ChoiceShan 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 假定你是使用WebPart Library进行开发的。 (一)定义Toolbox data 设置类的属性值。在类声明前加上对该类的属性设置。 [ToolboxData("")] // 注意其中Target的定义与类名相同 public class WebPart1 : Microsoft.... 阅读全文
posted @ 2008-05-16 16:32 ChoiceShan 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1.在项目中填加对Microsoft.SharePoint.dll的引用 a)如果你在Microsoft.SharePoint server上开发,可以在引用中直接找到。 b)如果没有,那就要将Microsoft.SharePoint.dll文件copy到你的目录中,加以引用。 2.添加System.Xml的引用。 3.指定Build output path。 ... 阅读全文
posted @ 2008-05-16 16:29 ChoiceShan 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 新建一个Content Editor Web Part,修改其Source Editor,添加以下代码: 实际使用时,只需要将上面红色的内容替换成你需要的内容即可。基本就是一个Image Library以及里面的picture 阅读全文
posted @ 2008-05-16 10:45 ChoiceShan 阅读(329) 评论(0) 推荐(0) 编辑