ASP.NET+JQuery UI Dialog ...

ASP.NET+JQuery UI Dialog ...

I have a JQuery UI Dialog that inside has a asp:button that must submit to server, but when I add
  1.     $('#PurchaseDetailInput').click(function () {
  2.         $('#dialogPurchaseDetailInput').dialog('open');
  3.         $('#dialogPurchaseDetailInput').parent().appendTo('form:first');
  4.         return false;
  5.     });
Where "parent().appendTo('form:first');", the dialog will cover my web page even if it was hidden and closed! this will also block my other button on my web page screen, but I remove appendTo('form:first');, that's no problem but the asp:button inside is no reaction.

The dialog box is:
  1.     $('#dialogPurchaseDetailInput').dialog({
  2.         draggable: false,
  3.         resizable: false,
  4.         autoOpen: false,
  5.         show: 'blind',
  6.         hide: 'explode',
  7.         modal: true,
  8.         width: 550
  9.     });
And the HTML is:
  1. ............................
  2. ............................
  3. <asp:Button ID="PurchaseDetailInput" runat="server" Text="請輸入代購貨品" />
  4. ............................
  5. ............................
  6. <div id="dialogPurchaseDetailInput" title="請輸入代購貨品資料">
  7.       <asp:textbox ID="XX" runat="server"> XXXXXXXXXXX </asp:textbox>
  8.       <asp:Button ID="PurchaseDetailInputConfirm" runat="server" Text="確認" Width="100px" OnClick="PurchaseDetailInputConfirm_Click" />
  9. </div>
$('#dialogPurchaseDetailInput').parent().appendTo('form:first'); is really really a big problem with bug !!!!!!!!