【问题标题】:Application_BeginRequest Event in global.asax in sharepoint共享点中 global.asax 中的 Application_BeginRequest 事件
【发布时间】:2020-03-15 19:01:37
【问题描述】:

首先,我需要知道在哪里可以找到global.asax 文件。我已经建立了 Sharepoint 站点,现在我需要在 Visual Studio 中创建新项目,然后我需要触发 Application_BeginRequest 以便在应用程序运行时获取用户的属性。那么,如何找到这个文件以及如何继承这个文件来让Application_BeginRequest事件运行。

【问题讨论】:

    标签: visual-studio sharepoint global-asax


    【解决方案1】:

    SharePoint 默认 global.asax 文件路径:

    要在 SharePoint 中自定义 http 模块,请创建一个继承自 IHttpModule 的类并将其注册到 SharePoint 配置文件中。

    演示:

    https://www.c-sharpcorner.com/UploadFile/40e97e/sharepoint-and-http-module/

    https://blogs.technet.microsoft.com/sharepointdevelopersupport/2015/02/18/when-using-a-custom-http-module-and-you-create-a-view-for-a-list-you-get-an-error-saying-cannot-complete-this-action-please-try-again/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-04-10
      • 1970-01-01
      • 2011-10-27
      • 1970-01-01
      • 1970-01-01
      • 2019-07-13
      • 1970-01-01
      相关资源
      最近更新 更多