User-139960961 posted
Hi, how do I convert this to c# to consume a json web service?
$("#authenticateUser").click(function()
{
var szUserName = "123";
var szPassword = "123";
//var szUserName = "User";
//var szPassword = "User";
var userInfo = {};
var szEncryptedPassword ='';
userInfo['password'] = szPassword;
$.ajax({
async: false,
url: "Site/encryptPassword",
type: 'POST',
data: userInfo,
success: function(data){
szEncryptedPassword = data;
},
error: function(req, status, ex) {
alert(req[0] + status + ex);
}
});
How do I get the respond back?