重定向使用itemreceiver的SharePoint [英] redirect using itemreceiver sharepoint

查看:144
本文介绍了重定向使用itemreceiver的SharePoint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当一个列表项添加到SharePoint列表我想重定向到一个感谢您网页。

When a list item is added to a sharepoint list i want to redirect to a thank you page.

我怎么能做到这一点在itemreceiver?

how can i do that in an itemreceiver?

推荐答案

我想你可以在ItemAdding事件重定向。但我一般不推荐使用的事件接收器这样的事情。更好地创建自己的新项目ASPX页面,以编程方式添加列表项,当用户点击OK按钮。当列表项添加的全部完成,那么你重定向到您的自定义ASPX页面的欢迎页面。

I guess you could redirect on the ItemAdding event. But I would generally not recommend using event receivers for something like this. Better create your own New Item ASPX page, add the list item programmatically when the user clicks the Ok button. When the list item add is all done then you redirect to the Welcome page from your custom ASPX page.

这篇关于重定向使用itemreceiver的SharePoint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆