This is a migrated thread and some comments may be shown as answers.

Calling multi threading after page is loaded

0 Answers 64 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Radek
Top achievements
Rank 1
Radek asked on 07 Aug 2008, 03:00 PM

Hi

I have ASPX page which needs to make three calls. Those calls are slow so I am trying to call them at the same time and display results when each will finish independently.

One approach was to call “Call_RadAjaxManager1(Parameters)” and create thred pool on serve. It will create three separated threads and finished independetly but results form each will not be populated on client site untill all will finished so in effect thred will finish job but results will not populate until other threads will finished.

Other approach was to create three UserControls and create those controls on my main page. JavaScript will make calls at the same time foe each UserContrall but second server side function will not be called until first one will finished even if those UserContralls have their own RadAjaxManager and each call is separate thread.

All of this is happening after page is loaded and loading icons are in place. I am using setTimeout(“FunctionName1()”, 10);
setTimeout(“FunctionName2()”, 10);
setTimeout(“FunctionName3()”, 10);

to make call to each “

“Call_RadAjaxManager1(Parameters)”
“Call_RadAjaxManager2(Parameters)”
“Call_RadAjaxManager3(Parameters)”

Fore each UserContralls.

Any idea how could I load thoes three pices of information independently at the same time and populate UI whe each will finished?

Thank you for your help.

No answers yet. Maybe you can help?

Tags
Ajax
Asked by
Radek
Top achievements
Rank 1
Share this question
or