问题
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