问题描述
全部
功能区执行删除项目"操作.删除时,我们需要验证用户是否可以删除并适当显示自定义错误页面.
Ribbon has a 'Delete Item' action. On deleting we need to validate if the user can delete and appropriately show a custom error page.
我们有一个带有cancewithredirect的事件接收器,但仅适用于表单.当请求为ASYNC且cancelwithredirect已过时时,我们该怎么做?
We have a event receiver with cancewithredirect, but would work only with forms. How do we do it when the request is ASYNC and cancelwithredirect is obsolete?
谢谢
Goutham
推荐答案
< Elements xmlns =" http://schemas.microsoft.com/sharepoint/>
< Receivers ListUrl ="ListName">
< Receiver>
<名称> EventReceiver1ItemAdded</名称>
< Type> ItemAdded</Type>
< Assembly>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Receivers ListUrl="ListName">
<Receiver>
<Name>EventReceiver1ItemAdded</Name>
<Type>ItemAdded</Type>
<Assembly>
- ListURL包含需要为其激活事件接收器的列表名称.它还可以具有ListTemplateId,这意味着将为使用模板ID创建的所有列表/库激活事件接收器.
- 同步"节点的值为同步",其中;将使ItemAdded事件成为同步事件.
这篇关于SharePoint 2013-ASYNC从功能区删除-如何从事件接收器重定向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!