• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1330
  • Last Modified:

AJAX ModalPopupExtender Disappears - Please Help

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
0
AaronNance
Asked:
AaronNance
  • 2
1 Solution
 
golfDoctorCommented:
You have not posted any relevant code.  AJAX executes on client side, so you need to post the HTML source, including any javascript.
0
 
AaronNanceAuthor Commented:
Figured it out...  The UseSubmitBehavior property of the button that triggers the popup must be set to True.

UseSubmitBehavior="True"
0
 
golfDoctorCommented:
Great, please close the question.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now