If you observe above code in header section I added some of script and css files by using those files we have a chance to display auto complete text with css style. To get those files just add those urls in in your application.

Another thing here we need to know is script function in header section

This is the function declaration of JSON format we are using this JSON function to call web methods using JQuery $.ajax() whenever we need to make Ajax call with JQuery then we will use JSON functions like as we mentioned in above format. Here type, ContentType and dataType are same for all functions only url, data and success functions will vary based on our requirement.

url: This is the path of our Webmethods

data: we will pass parameters using this parameter if no parameters then we need to use data: "{}"

I want to get the location along with the Username when i type in the search box and have - in between the result. Also the search should start after i type in the 2 or 3 characters. How can i modify your code to work with this. Can you help me on this please.

Thanks Suresh - it's working now from master page - it was a problem with the case of class=autosuggest. Only problem now is that once a choice is selected it triggers a dynamic regular expression that checks if the username is a valid email address. The dynamic message displays even though the username passes the regular expression. The page then still allows me to submit the form despite the regexp message. Have you come across this before? Thanks, Simon

Note to add: after selecting a choice, the focus is at the end of the text within the textbox and the regular expression message is displayed. If I then hit the enter key the dynamic regexp message disappears.is there a way to stimulate an 'enter' key press once the choice has been selected?

bro please help me, i have three textbox like first for country, second for state and third for city, so i want whenever a user choose country , all the states related to it will be there in second textbox and same in three, but its not working plese help me

Hi,I have a problem when I pass a value in document.getElementById('txtSearch').value that contains a '.For example txtSearch = Sant'Andrea.The function SearchText() return error.What I have to do?Thank You very much.ByeStefano

hello sir,i want to search employee names in my database based on any characters that appears in that name from textbox in asp.net.Ex-suppose i want to search Suresh ..i can search it with typing any characters in textbox that appears in the name "Suresh".please help me

Is there a way to have 2 auto complete boxes? EX. The first one would be last name. Then then second would be a persons first name with the corresponding last name. So the selected last name would be a requirement for the first name.for example the statement would be Select firstname from People where lastname='@LastName' and firstname LIKE '%'+@firstname'%''.

Hi Suresh, I tried your demo and it works fine. Thank you!.do you have a demo where I could accomplish this using the multiple value option as demoed here http://jqueryui.com/autocomplete/#multipleThank you

Auto suggest is not working.Actually in my scenario I have taken Auto suggest text in the default.aspx but I have used master page for other content.but its not working(My text box is in the default page not in master page).But when I remove master page from this than its working fine.So can tell for this Its compulsory to take handler.If without handler u have a solutions than plz let me know.please reply me very soon Its very urgent.

Sir...I'm stuck with a problem..plz help me to solve this.....The problem is , when I select an item from autocomplete list by using mouse click ,I'm not getting the item to the textbox......But sometimes it works properly.....Thank u

Hi Suresh,What do you do for the same using ascx file web method. We use web controls to integrate with CMS tool as a web part so I need to do the same in webcontrol using my business model to get ID,value data. When I tried replacing aspx file with ascx file, it does not seem to be calling the web method. Have you tried the same when you tried with aspx?

Hi suresh, I have used freindly URl in my project. But i need a autocomplete textbox in one of my page. I have included ur code but, the code written to fetch data is not being called. Its very necessary to do it . Please help me out....

I hv implemented the above functionality in my aspx page. After first page load it works fine but problem is when any postback occurs in same page, so this auto suggestion deesn't work. Pleaase help...

I used this code in the example and works great on my web page. I have another panel and a datagrid in it where I wan to use autocomplete as well. Is it possible to use it for more than 1 input fields? My datagrid has itemtemplate field and I changed that from textbox to input field but it did not work. I had added another function similar to "GetAutoCompleteData" to get email but errored out.

Hi Suresh your article was nice but if I want to fetch the data from LDAP server using query like populating email id's in textbox. I have implemented but performance is very low. I have also set the minimum length. please suggest me what will be the correct way.

Hi,I am using auto complete extender (developed as explained in the example) to get the cities based on countries which is working fine in the development environment as well in staging. But, same build throwing exception while working on production server. I am using MS Visual Web Developer 2010 Express

Where the production server has

1.https enabled2.referring to the live URLs, like https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js3.CDN enabled and referring the https:/CDNPath/ajaxlib.js