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 AkhtarRank #2,275 · 619 reputationPosted Jul 19, 2013, 1:05 AM EDT
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.
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 18, 2013, 10:10 PM EDT
ashok kumar69 reputationPosted Jul 18, 2013, 10:21 PM EDT
ashok kumar69 reputationPosted Jul 19, 2013, 1:32 AM EDT
what u have told is absolutely correct,i uncommented its working fine,Thanks a lot.