October 2010
Intermediate to advanced
1920 pages
73h 55m
English
AutoCompleteExtender with a Page MethodIf you don’t need to use suggestions in more than one page, it makes sense to expose the list of auto-complete suggestions from a page method. You can create a web method that is a static method on a page.
For example, the page in Listing 39.1 contains an AutoComplete extender control, which displays movie title suggestions while the user enters a movie title into a TextBox control.
Listing 39.1. AutoCompletePageMethod.aspx


In Listing 39.1, the AutoComplete extender control is declared like this: ...