redirect using itemreceiver sharepoint

这一生的挚爱 提交于 2020-01-04 04:40:27

问题


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

how can i do that in an itemreceiver?


回答1:


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.




回答2:


Take a look at this blog-post:
Redirecting from NewForm.aspx to DispForm.aspx after creating a new item



来源:https://stackoverflow.com/questions/1049585/redirect-using-itemreceiver-sharepoint

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!