【问题标题】:Processing dialog for SharePoint 2013 remote event receiver -Item Added eventSharePoint 2013 远程事件接收器的处理对话框 - 项目添加事件
【发布时间】:2015-01-13 09:29:03
【问题描述】:

对于附加了远程事件接收器的 SharePoint 2013 自定义列表(具有应用程序安装事件的提供商托管应用程序),是否可以有一个对话框,“等待添加项目”,具有 ItemAdded 事件。如果添加了一个项目,现在列表添加项目页面被视为卡住,而是需要显示一个用户友好的对话框“请等待添加项目”。

任何建议。

【问题讨论】:

    标签: sharepoint-2013


    【解决方案1】:

    试试这个:)

    // BEGIN long-running operation
    SPLongOperation lop = new SPLongOperation(this.Page);
    lop.LeadingHTML = "<div><h2>Your enormous file is being uploaded...</h2></div>";
    lop.TrailingHTML = "<div><h3>Please be patient</h3></div>";
    lop.Begin();
    
    // your long operation code here
    
    // END long-running operation
    lop.End(spTargetListObject.DefaultViewUrl, Microsoft.SharePoint.Utilities.SPRedirectFlags.Default, this.Context, "");
    

    这是一个关于它的有用博客http://howtosharepoint.blogspot.com/2010/04/how-to-programatically-show-processing.html

    【讨论】:

      猜你喜欢
      • 2013-04-07
      • 2010-12-03
      • 2014-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多