function saveData() { var txtName = $("#txtName").val(); var txtEmailId = $("#txtEmailId").val(); var txtPwd = $("#txtPwd").val(); var txtPhoneNo = $("#txtPhoneNo").val(); $.ajax({ type: "POST", url: "http://microsoft.com/webserviceswithdatabase/saveData", data: "{Name:'" + txtName + "',Password:'" + txtPwd + "',EmailID:'" + txtEmailId + "',PhoneNo:'" + txtPhoneNo + "'}", contentType: "application/json; charset=utf-8", datatype: "jsondata", async: "true", success: function (response) { // $(".errMsg ul").remove(); var myObject = eval('(' + response.d + ')'); if (myObject > 0) { // bindData(); alert(" saved successfully"); } else { alert("Opppps something went wrong."); } // $(".errMsg").show("slow"); clear(); }, error: function (response) { alert(response.status + ' ' + response.statusText); } }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)