`
7wolfs
  • 浏览: 178116 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

SharePoint 开发实录:5,WebPart 发布

阅读更多
发布步骤:(发布过程中,不需要重新启动sharepoint)

1,使用visual studio生成webpart解决方案,它包括一组dll、xml等文件
2,将解决方案拷贝到sharepoint site的bin目录下
3,在sharepoint site的 web.config 文件里的<SafeControls>中加入所添加的webpart
<SafeControl Assembly="TestWebParts" Namespace="TestWebParts" TypeName="*" Safe="True" />

4,为webpart增加权限控制,修改sharepoint site的web.config
<securityPolicy>
      <trustLevel name="Full" policyFile="internal"/>
......

</siteMap>
    <!--
    <trust level="WSS_Minimal" originUrl="" />
    -->
    <trust level="Full" originUrl="" processRequestInApplicationTrust="true" />

    <webParts>

5,在sharepoint site中导入webpart
6,在sharepoint site的对应的page中加入webpart

0
2
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics