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?

1 Answer 1


Maybe you can use the SPLongOperation, a small example:

SPLongOperation operation = new SPLongOperation(this.Page);


// long running code here ...


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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