I am using a jquery dialog, when user click ok, the server side onclick event should be fired, if click cancel, nothing happened. 

i have to prevent the click function at the beginning by preventDefault() function. 

```
  $(document).ready(function () {
         $("#<%=submit.ClientID %>").click(function (event) {
             event.preventDefault();
                $("#confirm").dialog({
                    buttons: {
                        "OK": function () {  $(this).dialog("close"); 
                              Here should be the code to trigger the server side click event

                     },
                        "Cancel": function () { $(this).dialog("close");},
                    } 
                });
         });
     });

```

I don't know how to trigger a server side onclick event. any ideas? thanks