Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am popping up a Modal Dialog using SP.UI.ModalDialog.showModalDialog. From the time that the modal pops up until the controls render on the page there is sometimes a bit of a lag.

What I would like to do it add some sort of animated gif to show that it is processing. Can anyone recommend an easy way to do this?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Maybe you can use the SPLongOperation, a small example:

SPLongOperation operation = new SPLongOperation(this.Page);

operation.Begin();

// long running code here ...
System.Threading.Thread.Sleep(4000);

operation.End("http://www.nu.nl");
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.