AJAX ModalPopupExtender Disappears - Please Help

Posted on 2007-10-17
Last Modified: 2008-01-09
I have a page that uses the AJAX ModalPopupExtender to display a popup panel when I click one of the buttons on the page. For the brief second or so that the page is refreshing I can see that the page is grayed out and my popup is displayed as expected. However, it immediately reverts back to the normal state as if I'd never clicked the button in the first place.

Any idea on what could cause this behavior? Below is my Form_Load event.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Me.SmartNavigation = True
            Call BindControls()
            Call LoadEncImagesData()
        End If
End Sub
Question by:AaronNance
    LVL 16

    Expert Comment

    You have not posted any relevant code.  AJAX executes on client side, so you need to post the HTML source, including any javascript.
    LVL 1

    Author Comment

    Figured it out...  The UseSubmitBehavior property of the button that triggers the popup must be set to True.

    LVL 16

    Accepted Solution

    Great, please close the question.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
    This demonstration started out as a follow up to some recently posted questions on the subject of logging in: and…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now