I am trying to get a simple jQuery UI dialog to work in an ASP.Net project. I have some buttons inside the dialog's <div>
, but they weren't posting back. Upon closer inspection, for whatever reason when making the <div>
a panel it moves it in the DOM so that it is the last tag before </body>
. This would all be fine and dandy except for it also moves it outside of the <form>
tag which is needed so that the buttons can do a postback.
What is the purpose of this behavior and how can I override it?
An example is here: http://jsbin.com/olumu4/
Looking at Firebug though I get this: