Click here to Skip to main content
15,943,477 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
me have the following code
which give same value when i change the index.if i change the index again it give same resulte
me have the following code

<script  type="text/javascript">
            $(function () {  var index= $("select[id=ddlSerch] option:selected").val() $('#<%=txtSerch.ClientID%>').autocomplete({
                 source: function (request, response) {
                         url: "HOME.aspx/GetCompanyName",
                         data: "{'pre':'" + request.term + "','index':'" + index + "'}",
                         dataType: "json",
                         type: "POST",
                         contentType: "application/json; charset=utf-8",
                         success: function (data) {
                             response($.map(data.d, function (item) {
                                 return { value: item }
                         error: function (XMLHttpRequest, textStatus, errorThrown) {

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900