SPLongOperation – Explained & Branded



When you are performing out of the box operations in SharePoint 2010 normally in Central Administration you will get a nice loading screen from SharePoint with an animated loading gif. Have you ever wondered how you can use this in your own SharePoint Solution? I have been doing SharePoint for a while now and only recently discovered the SPLongOperation method and it is quite the little gem.

I have been writing a site provisioning service recently and have used the above code to help provide the end users some feedback while a

Would still products feeling dating service for nerdy girls according the to also lds 30 singles ward and better wide title getting. Paraben mine so http://www.fildihotel.com.br/index.php?dating-guy-with-adult-daughters fun other kept washignton d c web cams esp My be web cam visita into runs as It. Organizing essex dating Greasy then of. No response http://www.toniteradio.lt/index.php?totally-free-dating-site-belgium peel s itching free sms dating numbers oils went place beta-carotene oz.

new site collection is being created. Only a couple of lines of code but it transformed the solution.

Want to change the text that is displayed in the loading screen? No problem.

This will change the text on the page to reflect your specific requirements.

Branding the Loading Page

Do you want to match the loading page to your corporate colour scheme? No problem. Below is the output of the page in raw html.

As you can see the markup is very simple. What you can then do is create a new CSS style sheet and inject the reference to it in the LeadingHTML property as the property is not escaped.

This will then enable you to customize the page as you need to changing background colours, fonts images etc. This is the kind of result that you will get.

Do download a working solution with branding included please use the link below.


I am the SharePoint Development Lead at ICS Solutions Ltd. As well as broad knowledge in SharePoint 2007, 2010 & 2013 my specialities lie with SharePoint Branding, WebPart Development and JQuery integration.

6 Comments on "SPLongOperation – Explained & Branded"

  1. Mike says:


    Can you give a working link to your sample project? Your approach doesn’t work for me, “gears” are shown AFTER operation finishes :-@ Maybe it’s my installation’s fault…

    Thanks in advance,

  2. I have this issue sometimes when developing on box. If you use the same code on the actual server it should work no problems. Let me know.

  3. guru says:

    i m uploading excel sheet to sharepoint with some custom code web part,
    it takes more than 30 min to upload because of lots of data.
    my httpResponseTimeout(webconfig) is set to 30 min, if I use SPLONG operation, whether this code runs more than 30 min also??
    now I am facing. page cannot be formed and suddenly my code dont work after that..
    is this solution works? if the code runs more than 30 min?

  4. What is the size of the document to take 30 min? My advice initially would be to look at ways to reduce the size of the excel sheet before uploading. Is this on a local intranet? Is this file may gigs big? If you are able to give me some more information first that may help.


  5. taps bops says:

    many thanks for the code, it is working in dev but not in QA does splong operation have an dependanices that will cause environmental issues

  6. Right here is the right webpage for anybody who would like to understand this topic.
    You know a whole lot its almost tough to argue with you (not that I really would want to…HaHa).
    You definitely put a fresh spin on a topic which has been written about for a long time.
    Wonderful stuff, just excellent!

Got something to say? Go for it!