1. 新建一个Class library project,添加对System.Web的引用
2. 项目添加一个user control
3. 编写这个Web Part
4. 为程序集添加强名称
5. 更改build的输出目录,改为C:\Inetpub\wwwroot\wss\VirtualDirectories\[Site的端口号]\_app_bin\
6. 修改AssemblyInfo.cs,添加using System.Security;和 [assembly: AllowPartiallyTrustedCallers()]
7. 更改user control的属性,将Copy to output directory改为copy if newer
8. Build工程
9. 用Reflector打开刚刚生成的dll,找到Assembly的信息
10. 打开C:\Inetpub\wwwroot\wss\VirtualDirectories\[Site 端口号]\web.config文件,在SafeControls下添加一行
<SafeControl Assembly="BR.WebParts.UControlDemo1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1e038d98fe593539" Namespace="BR.WebParts.UControlDemo1" TypeName="UserControlPart" Safe="True"/>
其中Assembly的信息是从Reflector里面取到的
10.最后把这个Web Part添加到网页上就可以了
KaneBoy的一篇文章提到使用Feature的部署DelegateContorl的方式部署一个ascx文件到站点集的Feature
0
0
Owe Her
优于自己的过去
eclipse中开发js会卡,去掉.project中的validate即可
项目经理的责任
话不说满_话不说绝_要给自己留后路_留余地
create table repo_folder_operate_log_bak as select * from repo_folder_operate_log;
Introduction to Mathematical Thinking
coursera 《现代操作系统》 -- 第十三周 期末考试
coursera 《现代操作系统》 -- 第十一周 IO系统