I have a requirement:
Check out doc in the library -> Open doc by MS-WORD -> Save the doc -> Close the doc & Check in (In MS-WORD) -> Redirect to another page
I found it couldn't redirect to another page after closed & check in in the MS-WORD.
Here is my coding:
private HttpContext CNT_CONTEXT = null;
public override void ItemCheckingIn(SPItemEventProperties properties)
if (CNT_CONTEXT == null)
CNT_CONTEXT = HttpContext.Current;
public override void ItemCheckedIn(SPItemEventProperties properties)
SPUtility.Redirect(strDirectLink.ToString(), SPRedirectFlags.Trusted, CNT_CONTEXT);
I debug & found the CNT_CONTEXT is null when call ItemCheckedIn Event. And I test a case, if check in in the doc library, the coding worked.
So who can tell me how to redirect to another page after close & check in doc in MS-WORD.
View Complete Post