Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6721943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:23:20+00:00 2026-05-26T09:23:20+00:00

<asp:ModalPopupExtender ID=MPE_EditGroup runat=server TargetControlID=btnShowPopup PopupControlID=pnlpopup DropShadow=true BackgroundCssClass=modalBackground /> <asp:Panel ID=pnlpopup runat=server > <asp:UpdatePanel ID=UpdatePanel1

  • 0
<asp:ModalPopupExtender ID="MPE_EditGroup" runat="server" TargetControlID="btnShowPopup"
                    PopupControlID="pnlpopup" DropShadow="true" BackgroundCssClass="modalBackground" />   
 <asp:Panel ID="pnlpopup" runat="server" > 
 <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
                            <ContentTemplate>
                                <table width="100%" style="border: Solid 3px #980000; width: 470px; height: 370px;"
                                    cellpadding="0" cellspacing="0">
                                                                   <tr>
                                        <td align="center">

                                            <asp:ListBox ID="lst_allmembers" SelectionMode="Multiple" Width="120px" ToolTip="Press ctrl to select multiple users"
                                                DataValueField="FirstName" runat="server"></asp:ListBox>
                                            <asp:Button ID="btn_Add" runat="server" Text="Add User" OnClick="btn_Add_Click" />
                                        </td>
                                        <td align="center">

                                            <asp:ListBox ID="lst_grpmembers" DataValueField="Name" SelectionMode="Multiple" Width="120px"
                                                ToolTip="Press ctrl to select multiple users" runat="server"></asp:ListBox>
                                            <asp:Button ID="btn_remove" runat="server" Text="Remove User" OnClick="btn_Remove_Click" />
                                        </td>
                                    </tr>
                                  <tr><td></td><td></td></tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Button ID="btnUpdate" CommandName="Update" runat="server" Text="Update" OnClick="btnUpdate_Click" />
                                        </td>
                                        <td align="left">
                                            <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="Cancel_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>

                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="btn_Add" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="btn_remove" EventName="Click" />
                               </Triggers>
                              </asp:UpdatePanel><asp:Panel>

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

Code behind for update

 Page.ClientScript.RegisterStartupScript(GetType(), "UserDialogScript", "alert(\"Group successfully updated\");", true);
        BindGridView(Session["useremail"].ToString());
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:23:20+00:00Added an answer on May 26, 2026 at 9:23 am

    You might have missed something when copying it, but the ModalPopupExtender isn’t closed properly:

    <asp:ModalPopupExtender ID="MPE_EditGroup" runat="server" 
        TargetControlID="btnShowPopup" 
        PopupControlID="pnlpopup" 
        DropShadow="true" 
        BackgroundCssClass="modalBackground" /> 
    

    As for closing the Popup and displaying an alert when the update button is clicked, try using a PostBackTrigger for the update button.

    <asp:PostBackTrigger ControlID="btnUpdate" EventName="Click" />  
    

    This will make the button perform a full postback, which will close the popup, and allow you to show the alert when the page reloads.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<asp:ModalPopupExtender ID=MPE_EditGroup runat=server TargetControlID=btnShowPopup PopupControlID=pnlpopup CancelControlID=btnCancel /> <asp:ToolkitScriptManager ID=ScriptManager1 runat=server /> <asp:UpdatePanel ID=UpdatePanel1 runat=server
<ajaxToolkit:ModalPopupExtender runat=server id=ModalPopupExtender1 cancelcontrolid=btnCancel okcontrolid=btnOkay targetcontrolid=Button1 popupcontrolid=Panel1 drag=true backgroundcssclass=ModalPopupBG /> <asp:Button ID=Button1 runat=server Text=Test
I have the following gridview that is inside an updatepanel: <asp:UpdatePanel ID=UpdatePanel1 runat=server> <ContentTemplate>
I have an ASP panel with a modalpopupextender attached to it that is shown
I'm not able to get my panel popup using ModalPopupExtender. Here's the code .modalBackground
How can I change ASP.NETAJAX ModalPopupExtender z-index. By default it is 100001. Thanks.
I'd like to use a modalpopupextender in my asp.net page to show a sub
I have this page where in i have a ModalPopupExtender. Now the panel that
I have a ajax asp.net modalpopupextender, I wont when I desplay popup, the popup
I have a ModalPopupExtender(mpe) which will show when a asp:button is clicked. The button

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.