I have an event handler that updates an list item on checkedin. However the user doesn't see the updated list until you refresh the page. How would I go about fixing this issue? code in c# Code as follows

 public override void ItemCheckedIn(SPItemEventProperties properties)

            base.EventFiringEnabled = false;

            SPFile file = properties.ListItem.File;
            properties.ListItem["ManualDisposalSet"] = "True";


            file.CheckIn("Updating Object", SPCheckinType.OverwriteCheckIn);

            String url = properties.AfterUrl;


1 Answer 1


Your main problem is that the ItemCheckedIn event is asynchronous, meaning that it will execute after the file has been checked in and the user has been redirected. Instead, if possible in your scenario, try the ItemCheckingIn that is synchronous

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.