下面将记录每一步的操作过程。
1、首先打开我的网站,依次点击Document Center、Documents,进入Documents列表页面。
2、在Documents列表界面中点击Settings,在弹出的菜单中选择Document Library Settings,即进入Customize Documents设置页面。
3、使用Reflector工具找出Eallies.EventHandler.Demo.dll的Assembly信息。
4、在Customize Documents设置页面中点击Advanced Settings项,则进入Document Library Advanced Settings页面。
在Document Library Advanced Settings页面中,找到Backwards Compatible Event Handler项,并在Assembly Name和Class Name中分别输入完整的Assembly信息和类名。
这里,笔者输入的Assembly Name为:Eallies.EventHandler.Demo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0173693e8368fd96(从Reflector中复制过来就行了)。Class Name为:Eallies.EventHandler.Demo.DocumentHandler。
至此,附加Handler程序就成功了。
1、首先打开我的网站,依次点击Document Center、Documents,进入Documents列表页面。
![](https://i-blog.csdnimg.cn/blog_migrate/ce039fc171c0e0e5665dd250723ddb61.png)
2、在Documents列表界面中点击Settings,在弹出的菜单中选择Document Library Settings,即进入Customize Documents设置页面。
![](https://i-blog.csdnimg.cn/blog_migrate/feeff54fc8a1d35c8783e58ad42ffb4d.png)
3、使用Reflector工具找出Eallies.EventHandler.Demo.dll的Assembly信息。
![](https://i-blog.csdnimg.cn/blog_migrate/ee8056ec86ee8bfb7e0f5b257c69e81d.png)
4、在Customize Documents设置页面中点击Advanced Settings项,则进入Document Library Advanced Settings页面。
在Document Library Advanced Settings页面中,找到Backwards Compatible Event Handler项,并在Assembly Name和Class Name中分别输入完整的Assembly信息和类名。
这里,笔者输入的Assembly Name为:Eallies.EventHandler.Demo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0173693e8368fd96(从Reflector中复制过来就行了)。Class Name为:Eallies.EventHandler.Demo.DocumentHandler。
![](https://i-blog.csdnimg.cn/blog_migrate/588f433102f19ca368f8664ead0de00e.png)
至此,附加Handler程序就成功了。
本文转自 Eallies 51CTO博客,原文链接:http://blog.51cto.com/eallies/78815,如需转载请自行联系原作者