code snippet
1: function GetCurrentTime1() {
2: PageMethods.GetCurrentTime('NewEgg ajax training', CheckIsSuccess);
3: }
4: function CheckIsSuccess(result) {
5: alert(result);
6: }
syntax higlighter
function GetCurrentTime1() { PageMethods.GetCurrentTime('NewEgg ajax training', CheckIsSuccess); } function CheckIsSuccess(result) { alert(result); }