Sharepoint SPLONGOPERATION Not working on IE 8 32Bit RRS feed

  • Question

  •  I am using SPLongOperation in my code to perform long operation.

    Now, the issue that i am getting is, the waiting image with message display once operation start on IE 8 64bit and Google chorme.

    But, on IE 8 32Bit, it is display when operation.end is call. so, it will just coming for a second and navigating to another page. Till that it stays on the same page.

    I am not able to understand why Microsoft code is working properly but not my code and how to resolve this.

    Any help is appreciated. Thanks.

    ----------------------------------------------------------- Hardik Shah

    Thursday, December 12, 2013 6:14 AM


  • Hi,

    From your description, I know your code (use SPLongOperation) not working on IE 8 32 bit.

    You can try like this: Create a visual web part and add a button in it. Then add the code snippet below into the button click event.

    string successUrl = SPContext.Current.Web.Url;
    // Create a new SPLongOperation
    SPLongOperation longOperation = new SPLongOperation(this.Page);
    // Provide the text displayed in bold
    longOperation.LeadingHTML = "Long running operation is being performed";
    // Provide the normal formatted text
    longOperation.TrailingHTML = "Please wait while your request is being performed. This can take a couple of seconds.";
    // Let’s start the code that takes a while from here
        // The code that might take a while
        //When the action is performed, the page will be redirect to this url
    catch (Exception ex)
        // When an exception occurs, the page is redirected to the error page.
        // Redirection to another (custom) page is also possible

    Best Regards

    Dennis Guo
    TechNet Community Support

    • Marked as answer by Patrick_Liang Sunday, December 22, 2013 5:54 AM
    Monday, December 16, 2013 8:20 AM