response redirect in event handler RRS feed

  • Question

  • I try to redirect user after edit a list to another page in site. So I write this code at the end of my item_updated list handler


    I pretty sure that this line of code is executed when I debug this handler but the page not redirect to page which I expect.

    Is this the correct way to redirect page in Sharepoint?

    Saturday, March 31, 2012 9:51 AM


  • You can use SPUtility.Redirect in your code. But keep in mind that in only applies to syncronous event and item_updated is not a syncronous event.

    If you want to use asyncronous event, you can use url query string. Simply add source=http://myintranet/default.aspx after you url. See this blog for further info.

    • Proposed as answer by Bagus Ilman Saturday, March 31, 2012 11:50 AM
    • Marked as answer by kate surya Saturday, March 31, 2012 12:11 PM
    Saturday, March 31, 2012 11:50 AM