<script type="text/javascript"> function GetDateTime() { var params = "{'msg':'From Client'}"; $.ajax ({ type: "POST", url: "Default.aspx/GetServerDateTime", data: params, contentType: "application/json;charset=utf-8", dataType: "json", success: function (result) { alert(result.d); }, error: function (err) { } }); } </script>
POST
method="post"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)