sharepoint 长时间操作处理。
try { using (SPLongOperation operation = new SPLongOperation(this.Page)) { operation.LeadingHTML = "Please wait while the operation runs"; operation.TrailingHTML = ""; operation.Begin(); //you code operation.End("http://www/reports.aspx", Microsoft.SharePoint.Utilities.SPRedirectFlags.Default, this.Context, ""); } } catch (Exception ex) { Response.Write(ex.Message); }