SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 2 down vote accepted

Maybe you can use the SPLongOperation, a small example:

SPLongOperation operation = new SPLongOperation(this.Page);


// long running code here ...

share|improve this answer

Your Answer


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.