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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:02:12+00:00 2026-05-10T17:02:12+00:00

It seems that in some cases, if you end up with nested modalPopups wrapped

  • 0

It seems that in some cases, if you end up with nested modalPopups wrapped with updatePanels (not ideal I know, and should probably be refactored, but that’s what we’re working with because of how some of the user controls we wanted to re-use were written), when you fire a postback that should open the nested modalPopup, instead it closes the parent one. For the sake of argument, if I set a breakpoint and run

((ModalPopupExtender)this.Parent.Parent.FindControl('modalPopupExtender'sID').Show(); 

right before the child modalPopup’s Show() method is called, it works as we originally expected. It seems to me that, because when updatePanels are nested, they can post back their parent, the parent modalPopup ‘doesn’t know’ it’s supposed to be showing and reloads its panel’s visibility from scratch as false. Because the child modalPopup is then nested inside a parent panel whose visibility is false, calling Show() on it has no effect either. So instead of getting another modalPopup open, the current one closes. This is not an error, just behavior we didn’t expect, so it was difficult to track down with no exception thrown anywhere, but I think the above explanation makes sense… If I’ve understood the problem incorrectly, please clarify it and enlighten me, because this doesn’t seem to happen all the time I’d think it would!
At this point for this particular situation we’re stuck re-writing some of those controls to not end up with nested updatePanels so this doesn’t happen, but I’m curious:
Has anyone run into this problem before, and did you come up with any clever work-around that doesn’t involve a call to FindControl() to re-Show() the modalPopup in question?

  • 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. 2026-05-10T17:02:12+00:00Added an answer on May 10, 2026 at 5:02 pm

    I have solved this problem!
    If you change the UpdatePanel’s UpdateMode to ‘Conditional’, the parent UpdatePanel doesn’t post back when the child UpdatePanel posts back, and then nesting them is no issue at all!
    I’m not sure why UpdateMode=’Always’ is the default, but, lesson learned.

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

Sidebar

Ask A Question

Stats

  • Questions 78k
  • Answers 78k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer jQuery doesn't have any logging built in. But you may… May 11, 2026 at 3:39 pm
  • added an answer Try passing InvariantCulture into your ToString() method: Dim dec As… May 11, 2026 at 3:39 pm
  • added an answer Perhaps you don't need a ComboBox at all. Assuming you're… May 11, 2026 at 3:39 pm

Related Questions

This was something originally discussed during a presentation given by Charles Brian Quinn of
From what I've seen in the past, StackOverflow seems to like programming challenges, such
I often find I want to write code something like this in C#, but
Background: I have a module which declares a number of instance methods module UsefulThings

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.