I've a jQuery dialog box, that contains html table. When I click OK button of the dialog, I need to pass this table to a method in code behind.Here's what I tried:\[code\]$("#custom-modal").dialog({ height: 200, modal: true, buttons: { "OK": function () { var table1 = $("#customTable").val(); $.ajax({ type: "POST", url: "MyPage.aspx/BindCustom", data: ({ param1: table1 }), error: function (XMLHttpRequest, textStatus, errorThrown) { alert(textStatus); }, success: function (result) { alert("success"); } }); $(this).dialog("close"); return true; }, "Cancel": function () { $(this).dialog("close"); return false; } } });\[/code\]BindCustom is webmethod on code behind. But it's not even called. Please help...