title: Modal pop up inside a update panel not responding
body: <pre><code>&lt;asp:ModalPopupExtender ID="MPE_EditGroup" runat="server" TargetControlID="btnShowPopup"
                      PopupControlID="pnlpopup" DropShadow="true" BackgroundCssClass="modalBackground" /&gt;   
   &lt;asp:Panel ID="pnlpopup" runat="server" &gt; 
   &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true"&gt;
                              &lt;ContentTemplate&gt;
                                  &lt;table width="100%" style="border: Solid 3px #980000; width: 470px; height: 370px;"
                                      cellpadding="0" cellspacing="0"&gt;
                                                                     &lt;tr&gt;
                                          &lt;td align="center"&gt;
  
                                              &lt;asp:ListBox ID="lst_allmembers" SelectionMode="Multiple" Width="120px" ToolTip="Press ctrl to select multiple users"
                                                  DataValueField="FirstName" runat="server"&gt;&lt;/asp:ListBox&gt;
                                              &lt;asp:Button ID="btn_Add" runat="server" Text="Add User" OnClick="btn_Add_Click" /&gt;
                                          &lt;/td&gt;
                                          &lt;td align="center"&gt;
  
                                              &lt;asp:ListBox ID="lst_grpmembers" DataValueField="Name" SelectionMode="Multiple" Width="120px"
                                                  ToolTip="Press ctrl to select multiple users" runat="server"&gt;&lt;/asp:ListBox&gt;
                                              &lt;asp:Button ID="btn_remove" runat="server" Text="Remove User" OnClick="btn_Remove_Click" /&gt;
                                          &lt;/td&gt;
                                      &lt;/tr&gt;
                                    &lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
                                      &lt;tr&gt;
                                          &lt;td align="right"&gt;
                                              &lt;asp:Button ID="btnUpdate" CommandName="Update" runat="server" Text="Update" OnClick="btnUpdate_Click" /&gt;
                                          &lt;/td&gt;
                                          &lt;td align="left"&gt;
                                              &lt;asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="Cancel_Click" /&gt;
                                          &lt;/td&gt;
                                      &lt;/tr&gt;
                                  &lt;/table&gt;
                              &lt;/ContentTemplate&gt;
  
                              &lt;Triggers&gt;
                                  &lt;asp:AsyncPostBackTrigger ControlID="btn_Add" EventName="Click" /&gt;
                                  &lt;asp:AsyncPostBackTrigger ControlID="btn_remove" EventName="Click" /&gt;
                                 &lt;/Triggers&gt;
                                &lt;/asp:UpdatePanel&gt;&lt;asp:Panel&gt;
  </code></pre>
  
  <p>I have this table inside the update panel, and the add and remove works fine, but the update button doesnt respond, but the code is executed and everything is fine. but it has to close the modal pop up and display a alert, but it is not happening. If i do redirect when I click the update button it works. but I want to show a alert and then bind the table. what should be done</p>
  
  <p>Code behind for update</p>
  
  <pre><code> Page.ClientScript.RegisterStartupScript(GetType(), "UserDialogScript", "alert(\"Group successfully updated\");", true);
          BindGridView(Session["useremail"].ToString());
  </code></pre>