update javascript in updatepanel
lets say I've got a function that iterates over an array. The function is outside the updatepanel, the array is defined within the update panel. The items of the array are dynamically created. On the first try I've realized, that the values of the array do not update when the updat开发者_开发百科e panel loads again.
Would be glad if someone can provide a solution for this.
Step one: Remove that update panel. Replace it with a proper AJAX call. Update panels will murder your performance and create all manner of maintenance headaches. I am in a world of pain thanks to our dev team using update panels as a way to get AJAX on the quick and dirty.
精彩评论