Sunday 31 July 2011

Display Loading or Progress bar in modal dialog Sharepoint 2010


To Display custom wait message in modal dialog use the following code in your modal dialog

// BEGIN long-running operation
SPLongOperation lop = new SPLongOperation(this.Page);
lop.LeadingHTML = "Adding customers";
lop.TrailingHTML = "Please be patient";
lop.Begin();

// your long operation code here

// END long-running operation
lop.End(Customers.DefaultViewUrl, Microsoft.SharePoint.Utilities.SPRedirectFlags.Default, this.Context, "");

See more options :
http://howtosharepoint.blogspot.com/2010/04/how-to-programatically-show-processing.html

Ads by Google

No comments:

Post a Comment