The closest you can get is to call a local function (javascript) and then turn off the server request through an asynchronous call (Ajax). However, you cannot directly call the method on the server from the client.
Using jQuery, it will look like this:
$("#txtUserName").blur(function(e){
ControlOnBlur();
$.post("/methods", {methodName:"refreshData", function(results){
alert(results);
});
});
source
share