<script type="text/javascript"> $(document).ready(function () { $('#<%=SearchText.ClientID%>').autocomplete({ source: function (request, response) { $.ajax({ url: "SearchSuggestions.asmx/GetSuggestions", data: "{ 'searchValue': '" + request.term + "' }", type: "POST", dataType: "json", contentType: "application/json;charset=utf-8", success: function (result) { response(result.d); }, error: function (result) { alert('There is a problem processing your request'); } }); } }); });
'#<%=SearchText.ClientID%>'
'#<%=((TextBox)Master.FindControl("SearchText")).ClientID %>'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)