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

  • Home
  • SEARCH
  • 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 6644693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:11:49+00:00 2026-05-26T00:11:49+00:00

<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

  • 0
<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" UpdateMode="Conditional" ChildrenAsTriggers="false">
    <ContentTemplate>
        <asp:Panel ID="pnlpopup" runat="server">
            <asp:ListBox ID="lst_allmembers" DataValueField="FirstName" runat="server" />                       
            <asp:Button ID="btn_Add" runat="server" Text="Add" OnClick="btn_Add_Click" /><asp:ListBox ID="lst_grpmembers" runat="server" />
            <asp:Button ID="btn_remove" runat="server" Text="Remove" />
            <asp:Button ID="btnUpdate" CommandName="Update" runat="server" Text="Update" OnClick="btnUpdate_Click" />
            <asp:Button ID="btnCancel" runat="server" Text="Cancel" /></asp:Panel>
    </ContentTemplate>
</asp:UpdatePanel>

The add button has a event OnClick=”btn_Add_Click”

  protected void btn_Add_Click(object sender, EventArgs e)
  {
        lst_grpmembers.Items.Add(lst_allmembers.SelectedItem.Text);
             }

The event is not triggered and when I click the add button nothing happens. And the Update Button was working fine before I added the update panel now only the cancel button closes the popup no other button works inside the pop up
How to trigger the event.

  • 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-26T00:11:49+00:00Added an answer on May 26, 2026 at 12:11 am

    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:

    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btn_Add" /> 
    </Triggers>
    

    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:

    <asp:Panel ID="pnlpopup" runat="server">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
            <ContentTemplate>
                <asp:ListBox ID="lst_allmembers" DataValueField="FirstName" runat="server" />
                <asp:Button ID="btn_Add" runat="server" Text="Add" OnClick="btn_Add_Click" />
                <asp:ListBox ID="lst_grpmembers" runat="server" />
                <asp:Button ID="btn_remove" runat="server" Text="Remove" />
                <asp:Button ID="btnUpdate" CommandName="Update" runat="server" Text="Update" OnClick="btnUpdate_Click" />
                 <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
    
    • 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 DropShadow=true BackgroundCssClass=modalBackground /> <asp:Panel ID=pnlpopup runat=server > <asp:UpdatePanel ID=UpdatePanel1
<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 this panel... <asp:Panel ID=panSumarios runat=server style=border:0px solid red;width:100% ViewStateMode=Enabled></asp:Panel> ...inside a div
I am using an ASP.NET ModalPopupExtender on a page and would like to prevent
How can I change ASP.NETAJAX ModalPopupExtender z-index. By default it is 100001. Thanks.
The ASP.NET AJAX ModalPopupExtender has OnCancelScript and OnOkScript properties, but it doesn't seem to
I added the ModalPopupExtender to an existing ASP.NET application. At runtime I get the
I'd like to use a modalpopupextender in my asp.net page to show a sub
ASP.NET server-side controls postback to their own page. This makes cases where you want

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.