<
Change the UpdatePanel's ChildrenAsTriggers
property to true
. This will cause any postbacks triggered by the UpdatePanel's child elements to update its content.
EDIT: Just realized that btn_Add
is a nested control, so you will have to explicitly call it out as an UpdatePanel Trigger
. Add the following to your UpdatePanel markup, after the ContentTemplate:
EDIT #2: To keep your modal popup from closing when an async postback occurs, move the UpdatePanel
inside the panel specified by ModalPopupExtender's PopupControlID: