Show an "Operation in progress" in MOSS with c#

When you have a time consuming method in your custom sharepoint code, you can give the user a nice animated

this is done quite easily. The SharePoint namespace provides a class called SPLongOperation use an object of this class to call its Begin() and End() methods. You need to define to the End() method a string that contains the redirect url after the operation is completed.

try

{

using (SPLongOperation ctx = new SPLongOperation(this.Page))

{

ctx.LeadingHTML =

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)