Click here to Skip to main content
16,020,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am having a aspx page in a SP site. It has 4 update panels and each update panel(UP) has a timer in that. Each update panel is fetching data from different webservices. First timer in UP1 has a delay of 1ms and UP2 has 2ms. UP1 fetches data after every 1ms and UP2 does after every 2ms. similarly UP3 and UP4 also works. All Update panels need to load data simultenously.

The problem is that the performance of the page is very low and also which code switching from one timer to other timer also its taking more time.

Can any one help me in resolving this issue to improve the performance of the page.

Thanks in advance.
Posted

1 solution

Hello N Sudheer Gupta,

Why can't you make single timer, which is least interval, in that keep hidden field (kind of flag) to differentiate the code to be running at different interval. so call to the server may reduce right,

let as your UP1 Timer Interval is 1ms, lets only take this one at first time (hdnUP2.value=false), UP2 should not run, next tick next 1ms (last 1ms + now 1ms=2ms) (make this hdnUP2.value=true next time it will be false ) Now UP2 should update the data form specified service as you mentioned,


Hope this will helps

Thanks
Happy Coding
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900