摘要: 最近遇到个需求,要对moss2007中的文档进行加密解密保护,具体需求是上传解密下载时加密(具体原因不做解释)。接到这样的需求第一反应肯定是用EventHandler来解决,实际上EventHandler是无法做到的(无法获取下载事件),在网上找了很多资料都没能直接解决问题。通过实验找到了解决问题的办法具体如下:1.首先找到事件,就是上传的事件和下载的事件:上传:修改upload.aspx页面,重写上传事件。重写要注意一些问题:首先新建个类继承Microsoft.SharePoint.ApplicationPages.UploadPage,具体如何写上传的代码要参考Microsoft.Shar 阅读全文
posted @ 2012-02-21 15:12 jindahao 阅读(1141) 评论(0) 推荐(0) 编辑
摘要: sqlserver 的自定义聚合函数报错:A.NETFramework erroroccurredduringexecutionofuser-definedroutineoraggregate"StrJoin":System.Data.SqlServer.TruncationException:Tryingtoconvertreturnvalueoroutputparameterofsize15970bytestoaT-SQLtypewithasmallersizelimitof8000bytes.System.Data.SqlServer.TruncationExcept 阅读全文
posted @ 2012-02-21 14:39 jindahao 阅读(468) 评论(0) 推荐(0) 编辑