I have a modal that gets dynamically loaded when a user clicks a button on a grid. The modal content is populated from an ascx user control. It has to be inside the update panel as the values change dynamically when the user clicks the grid.
I add the following to display the modal:
The problem is, when i submit the modal since the modal is ajax-y it does a partial postback causing the modal not to close.
This will close the modal, but not fire the postback:
Then of course removing the onclientclick and just handling the onclick triggers the postback, but does not hide the modal.