Showing posts with label Processing Page. Show all posts
Showing posts with label Processing Page. Show all posts

Wednesday, July 20, 2011

Using SharePoint 2010 Processing Page in code

For long operations, one could use the following code in order to display the SharePoint's default processing page.

string

{
      operation.Begin();

      //Your Code

      operation.End(comeBackUrl, Microsoft.SharePoint.Utilities.
}
SPRedirectFlags.DoNotEncodeUrl, System.Web.HttpContext.Current, null);

comeBackUrl = SPContext.Current.Web.Url.ToString();using (SPLongOperation operation = new SPLongOperation(this.Page))