使用QuickPart开发WebPart

下载QuickPart.dll

最新版本为:1.0.3

在web.config

中加入

<SafeControl Assembly="QuickPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" Namespace="Microsoft.PRC.SharePoint" TypeName="*" Safe="True" />

修改

trust

<trust level="Full" originUrl="" />

在web部件库里面选择下面两项

上传

在添加webpart时

选择下面这一项插入

一般ascx放在系统的templates下面和网站的wpresources目录下

dll放在GAC里或网站的bin目录下

原文地址:https://www.cnblogs.com/poissonnotes/p/1663024.html