ASP.NET WaitPage Framework - Pete Beech

WaitPageHelper.GetCurrentTaskResults Method 

Returns the results from the current task, if it exists. An exception is thrown if there is no current task, or the task has not completed.

public static object GetCurrentTaskResults();

Return Value


This is called from the results page, if notification has been received to indicate they are ready. The results are obtained via the ITaskWaiter, and should be cast by the caller to the appropriate type. By calling this, the current task waiter is cleared, and the whole task waiting process is cancelled - so you need to keep hold of the results if you require them later, as you won't be able to get them again. You also must make sure you call GetCurrentTaskResults, otherwise the task won't be cleared.

See Also

WaitPageHelper Class | WaitPageFramework Namespace