如果你使用sharepoint 里的eventhandler,并在里面做了页面跳转,但是发现跳转失败的话,请注意,一定要先设置RedirectUrl,再设置Status。

三行代码的顺序一定不能错!

MSDN上都是错的,坑爹呀~~~~~

View Code
 properties.Cancel = true;
 properties.RedirectUrl = "/_layouts/CustomErrorPage/SiteCreationError.aspx";
 properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl;

 

相关文章:

  • 2021-12-10
  • 2021-10-14
  • 2021-10-30
  • 2021-06-29
  • 2022-12-23
  • 2021-06-11
猜你喜欢
  • 2021-04-28
  • 2022-12-23
  • 2021-08-16
  • 2021-12-01
  • 2022-01-29
  • 2022-01-05
  • 2021-08-29
相关资源
相似解决方案