title: JQuery blockui & ASP.NET postback conflicts
body: <p><strong>Background:</strong></p>
  
  <p>I'm using jquery blockui 2.31 on jquery 1.3.2, on ASP.NET 2.0.</p>
  
  <p>I'm using the dialog to show a (normally) hidden DIV as sort of a pop-up modal dialog, with ASP.NET server side controls in it (for simplicity's sake, an asp:Button). There's no AJAX, or not guaranteed to be any.</p>
  
  <p>One of the things jquery blockui does, if you pass it some html elements--is it will remove the control from its place in the page, and append it to the <strong>body</strong>.</p>
  
  <p>ASP.NET 2.0 seems to want controls that post back to be in the <strong>form</strong> you can find with $(#aspnetForm). jquery blockui just moved them to the <strong>body</strong>, so the postback <em>never fires</em>.</p>
  
  <p>The method is an instance method and probably won't work well as static (references logged in user and page controls...)</p>
  
  <p><em>I've done some digging:</em></p>
  
  <p>I modified jquery blockui to append to the form (and wrestled with the selector to remove the block) but it borks IE6 and IE7--the overlay starts at the form and the entire dialog appears off-center. Hiding the overlay is not an option, and I really hate messing with IE-specific css &amp; IE-specific script.</p>
  
  <p>I tried appending some layers to the body and some to the form, but the body layers always show on top of the form layers (so the opaque layer that blocks input will also block the input on the div I'm trying to show).</p>
  
  <p>I'm thinking the solution is in having the div call a hidden dummy anchor to execute the original button's postback. <a href="https://stackoverflow.com/questions/99917/how-do-i-chain-my-own-javascript-into-the-client-side-without-losing-postback-fun/100431#100431">sontek</a> suggested this in his answer to a related question.</p>
  
  <p><strong>My actual question:</strong></p>
  
  <p>Am I on the right track with the fake postback trick? I suppose that if I'm relying on jquery for modal dialog functionality I shouldn't be worried about fallback.</p>
  
  <p>Or, should I continue to muck about with the styling of the form addition?</p>