I have a page that returns messages in a drop-down list (using the AJAX update panel). Based on the drop-down list, the rest of the user interface on the page is dynamically generated. A dynamic user interface is drawn on the page load to get values ββwhen the Submit
button is clicked. The problem I am facing is that when changing the drop-down list, there are two reverse processes, one of which draws the original user interface and the one that draws the changed interface (thus creating inconsistency). How to deal with it. Is there a way to figure out which control caused the postback so that I can redraw the interface when postback happens due to pressing the select / submit button.
EDIT: missed an important question. The trigger for the update panel is the SelectionChanged
drop-down list event. This causes an additional postback.
source share