4
Answers

parameter not passing to the webservice from the jquery

Ask a question
ashok kumar

ashok kumar

11y
2.3k
1
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() {
                $('#<%= 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");
                            }
                        });
                    }
                });
            }
         

Answers (4)