Is there a way that an updatepanel could be set (through an attribute) to ONLY update when something has changed without the need to write custom code?
For example, I have a page with an updatepanel on it that updates its contents every 10 seconds. However, I only want to refresh the data in that update panel when something in it has changed - not every single time the timer fires. The updatepanel has images in it and, because i do not want to display any cached results, I setResponse.CacheControl = "no-cache" and Response.AddHeader("Pragma", "no-cache")on page_init. The end result is screen flicker every 10 seconds).
It would be nice to have the update panel only update if something has changed by comparing the existing and the new data.
suggestions welcome - just email me or post a reply
Dan
Hi,dan.kotarski
I am afraid UpdatePanel cann't do this!
Maybe you can use WebService or PageMethod as an alternative, You can write some JS to compare the existing data and the new data in the result of WebService or PageMethod.
Let me know if you need more info.
Hope this helps.
Thanks!
No comments:
Post a Comment