Reputation: 3
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 update panel loads again.
Would be glad if someone can provide a solution for this.
Upvotes: 0
Views: 173
Reputation: 10391
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.
Upvotes: 1