Trying to get a simple asp.net ajax dropdownlist autocomplete extender example to work!

I want to check the ajax autocomplete extension for dropdownlist to work. I am testing this in Visual Web Developer Express 2008.

1) I deleted the text field in the default.aspx format 2) The script control fell out of the Ajax toolbar 3) The extension of the autocomplete extension to the text field

BTW, at the moment, if I show the properties for the AutoCompleteExtender object, the ServicePath property will be black. If I click there, VWDE2008 will fail (!)

I want an easy way to test the autocomplete function, preferably without setting up a web service (or, using a web service, with a simple explanation). I would like to display options from a simple C # list, for example cities, for example:

Copenhaguen, Denmark
Miami, Florida, USA
Paris, France

It is declared directly in the code (not read from the database). Currently, most people suggest using jquery instead. I could not find a SIMPLE (not video) tutorial to set it up!

Can anyone help?

Thanks!

+3
source share
2 answers

You can use autocomplete with PageMethod instead of a web service. The scenery of the method is similar, but the code remains “on the page” and can access the session variables and something else.

I found that looks like an OK example, which is here:

http://allwrong.wordpress.com/2007/03/13/ms-ajax-autocomplete-extender-using-a-page-method/

+1
source

JQuery- , pagemethod - WCF
TextBox ASP.NET jQuery

+1

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


All Articles