asp.net ajax - calling UpdatePanel.Update multiple times in same postback? -
can explain me happens if call updatepanel.update() multiple times in same postback event? client updated each time, or updated once?
thanks
calling updatepanel.update
update updatepanel once - remember panel/controls go through full postback lifecycle ensures updatepanels content (and applicable viewstate/controlstate) sent client further processing.
this can verified looking @ server response. each update panel updated content, either manually through update
or automatically as described here, has associated |updatepanel|<panel_id>|<new_content>|
section in response - each panel can have @ 1 |updatepanel|
entry.
if outer update panel updated, every contained update panel (immediate children , distant grandchildren) updated part of outer update panel instead of having own |updatepanel|
entry.
Comments
Post a Comment