C# – redirect using itemreceiver sharepoint

csharepoint

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?

Best Answer

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.