<script type="text/javascript"> function ShowCurrentTime() { var base64 = $('#colors_sketch')[0].toDataURL(); $.ajax({ type: "POST", url: "Dms_BOM.aspx/GetCurrentTime", data: '{name: "' + base64 + '" }', contentType: "application/json; charset=utf-8", dataType: "json", success: OnSuccess, failure: function (response) { alert(response.d); } }); } function OnSuccess(response) { alert(response.d); } </script>
[System.Web.Services.WebMethod] public static string GetCurrentTime(string name) { FILLHOD(name); return "Base64 code :" + name ; }
protected void FILLHOD(string name) { }
protected static void FILLHOD(string name)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)