views:

148

answers:

1

I'm using the jQuery UI Dialog() function on an ASP.NET webform, on a particular panel.

After Dialog() is applied, the buttons become useless and will not post back at all; I'm not even getting a Page_Load event firing, let alone any button events.

Is the Dialog function messing with my button events? If so, is there a way to fix this?

+2  A: 

My guess is since you are using WebForms your actaul dialog is outside the one tag you get in WebForms. You can check this by viewing the source, or better yet opening the IE Developer tools (F12) and then selecting the dialog. You can then see where your buttons are in the DOM.

The other thing, remember in WebForms all the controls have to well be controls that runat=server. If you are using pure HTML then you need to assign the acciont of the button's click event in the JavaScript.

Chris Love
Correct. Fixed the problem with a one-line hack to append the popup container back inside the update panel element.
jonathanconway