Try changing the following:
var input = document.getElementById('<%=txtDiagnosis.ClientID%>').value;
to:
var input = document.getElementById('txtDiagnosis').value;
[EDIT]
Things to look at:
1.
[OperationContract]
is missing from
getResult
function.
2.
getResult
method signature does not match the necessary one for the
AutoCompleteExtender
according to the
documentation[
^] for use as a
ServiceMethod
.
3. GetDataCode.getResult is passing two parameters, however, the method signature only shows one.
[/EDIT]