sharepoint - Share point web part, asynchronous processing on the server -


I am developing a web part, which is to parse the list of files on the server side and output a report. The problem is that this opperation can last for a large amount.

I have decided to load the web part content immediately with a message for processing of files in a separate thread and "Loading ...." When the results are purse then an event Will be removed and content of the Web Part will be updated.

I have got many posts with the following solutions

  • (this idea is similar)

    The problem is that my solution does not have an .aspx file in which I can adjust the @ page directive in the async = "true" parameter.

    Does anyone know where this file is or how it can be handled, mainly by the Web Part.

    PS I have tried to execute the work with BackgroundWorker but this increases with the same error as Page.RegisterAsyncTask . The error is: "Asynchronous operation is not allowed in this context. In order to start the asynchronous operation, the page must set the uncorrect attribute to the correct and the asynchronous operation can only be started on the page before the prerender is completed. . "

    WebPort can run asynchronous / multi-threaded. Register the appropriate event handlers via Page.RegisterAsyncTask. You will specify the method which should be implemented asynchronously, as well as the callback method on which the control will return when processing is complete.



Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

c# - Confused over DLL entry points (entry point not found exception) -