Sir i want to return multiple(name and statusid) parameter from web method and want to retrive in javascript function how to use it.
I have attached my code.
[System.Web.Services.WebMethod]
public static string CheckPromotionCode(Int32 id)
{
string name="kausha";
string statusId = "6";
return name;
}
<script>
function CheckPromotionCode() {
$.ajax({
method: 'POST',
url: 'MerchantPromotionCode.aspx/CheckPromotionCode',
contentType: 'application/json',
data: '{id:5}',
dataType: 'application/json, charset=utf-8 ',
success: function () {
},
failure: function () {
}
});
}
</script>