HI,
I need to pass the parameter '999999999' to an webservice when i execute iam getting the error System.InvalidOperationException: Missing parameter: callerid.
pls help me out.
function SearchText() {
I need to pass the parameter '999999999' to an webservice when i execute iam getting the error System.InvalidOperationException: Missing parameter: callerid.
pls help me out.
function SearchText() {
$('#<%= txtusername.ClientID%>').autocomplete({
source: function (request, response) {
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "../HttpHandler/Autocomplete.asmx/GetCallername",
data: "{'callerid':'" +9999999999+ "'}",
dataType: "json",
success: function (data) {
response(data.d);
alert('i enter');
},
error: function (result) {
alert("Error");
}
});
}
});
}
Riyaz AkhtarPosted Jul 19, 2013, 5:05 AM
the error u r getting generally comes when u have missed the parameter or parameter name mismatch(case sensitive).
ur code looks fine to me only thing i observed that [System.Web.Script.Services.ScriptService] should be uncommented in ur code.
i run ur code and it worked fine.
Please let me know if u are still getting the error.
ashok kumarPosted Jul 19, 2013, 5:32 AM
what u have told is absolutely correct,i uncommented its working fine,Thanks a lot.
ashok kumarPosted Jul 19, 2013, 2:21 AM
Riyaz AkhtarPosted Jul 19, 2013, 2:10 AM