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 6216671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:17:25+00:00 2026-05-24T07:17:25+00:00

I m using a ModalPopupExtender1 in my page to edit some information this is

  • 0

I m using a ModalPopupExtender1 in my page to edit some information this is a panel that I m using contain some textbox and a link to upload photo
when this link is clicked a new ModalPopupExtender2 is open to upload file
When I open my 1st pop extender I m able to disable page
using this script

.modalBackground 
    {
        background-color:Black;
        filter:alpha(opacity=70);
        opacity:0.7; 
    }

I m unable to disable my 1st Popupextender using the same code
What I want is to disable my 1st popupextender when my 2nd popupextender is open

  • 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-24T07:17:28+00:00Added an answer on May 24, 2026 at 7:17 am

    What I do with the ModalPopupExtender is wrap it in a panel and updatepanel:

    <asp:Button ID="btnShowPopup" runat="server" style="display:none" />
    <asp:ModalPopupExtender ID="mdlPopup" runat="server" TargetControlID="btnShowPopup" PopupControlID="upModal" BackgroundCssClass="modalBackground" />
    
    <asp:Panel ID="pModal" runat="server" width="450px">
        <asp:UpdatePanel ID="upModal" runat="server" UpdateMode="Conditional">
           <ContentTemplate>
           MODAL CONTENTS HERE
           </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
    

    I can then call the .Show() and .Hide() methods of the modals and the update panels. You should be able to do something like this on your edit information modal:

    Protected Sub btnUploadFile_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUploadFile.Click
       mdlEditInfo.Hide()
       mdlUploadFile.Show()
    End Sub
    

    You can then switch back and forth between the modals, and update them if needed through the UpdatePanel.

     Protected Sub btnUploadDone_Click(ByVal sender as Object, ByVal e As System.EventArgs) Handles btnUploadDone.Click
       lblStatus.Text = "File uploaded successfully" 'control in the UpdatePanel for the EditInfo modal
       upEditInfo.Update()
    
       mdlUploadFile.Hide()
       mdlEditInfo.Show()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application and I am using ModalPopupExtender to edit some information and
I'm using the ModalPopupExtender control from the AJAX toolkit. This control extends a panel
I am using an ASP.NET ModalPopupExtender on a page and would like to prevent
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I'm implementing a Announcement system that is loosely based on this article: https://web.archive.org/web/20211020111733/https://www.4guysfromrolla.com/articles/110409-1.aspx One
I have this modalPopupExtender, I want it to show a CheckBoxList with some data.
Using Rails 3.2.0 with haml and sass: I Would like to link an external
I tried using this example: http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/modalpopup/modalpopup.aspx <ajaxToolkit:ModalPopupExtender ID=MPE runat=server TargetControlID=LinkButton1 </ajaxToolkit:ModalPopupExtender> And try using

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.