The buttons in this jquery are not showing;

```
function jqcall() {
     $(document).ready(function () {
           var dlg1 = $("#dialog").dialog({
                  width: 1250,
                  height: 575,
                  autoOpen: false,
                  buttons: {
                      'Ok': function () {
                          $("[id*=Button1]").click();
                      },
                      'Close': function () {
                          $(this).dialog('close');
                      }
                  }
           });

           dlg1.parent().appendTo($("form:first"));
     });
}

```

Originally this dialog box was opening on clickig link button in Gridview and also the save button is not working in gridview; it is posting back to server and not showing any error but data is not saving to the database.