How to make autocomplete SO tags using Ajax

Can someone tell me how I can implement something like an autocomplete tag using Ajax?

+3
source share
4 answers

The easiest and easiest way is to use AutoCompleteExtender in the Ajax Controls Toolkit .

It uses a WebService to transfer data to the control and can be linked to an existing TextBox. However, you can also use PageMethod to feed the expander.

Alternatively, you can collapse your own using JavaScript and ScriptManager, however this can be quite complicated. I recently tried with jQuery and it is definitely easier.

+2
source

I highly recommend watching this jquery autocomplete plugin that I have used on several of my web projects with fantastic customer reviews.

+2
source

first you will need to create a web service for extracting words

http://www.csharpcorner.com/UploadFile/raj1979/AutoComplete02142008113654AM/AutoComplete.aspx

+1
source

I would suggest getting a copy of the excellent Pragmatic Ajax book that guides you through such an example.

0
source

Source: https://habr.com/ru/post/1707994/


All Articles