Wednesday, October 07, 2009

Using JQuery UI Dialog with ASP.Net and AJAX Update Panel

I ran into an issue using an ASP.NET UpdatePanel and the JQuery UI Dialog. I found the solution here.

When I put an update panel in the dialog, it stopped posting back to the server. It seems that JQuery moves the containing div of the dialog by appending it to the body. This puts it as the last element of the body, outside of the form element.

The fix was to use JQuery to append the dialog to the form.

No comments: