Sep 19, 2009

Creating a long running operation page

This is very good feature to show the long running operations page while creating certain background operation like custom site creation wizard.

Code for this:

SPLongOperation operation = new SPLongOperation(this) {
LeadingHTML = "This is the description of my operation",


};

operation.Begin();
Thread.Sleep(2000);
operation.End("/Custompage.aspx");

Note: Put your code inside Operation.Begin() and Operation.End()

For more information visit

Microsoft.SharePoint.SPLongOperation

Enjoy!!!

No comments:

Post a Comment