简体   繁体   中英

Making autocomplete extender in ASP.NET

I have a textbox. I'm fetching data from the database through autocomplete functionality, but the problem is I'm getting more than 200 records as the result. I want to display only 10 records in autocomplete list based on search and I want to display a more link like More >> just below the 10 records. When the user clicks on More >> link it will display 10 new records in autocomplete list based on user search.

You will have to write a custom control to modify the functionality of the AutoCompleteExtender . You will have to customize the render event and will have to render a link of more after n number of rows.

Here is a tutorial on how to write a custom control for AutoCompleteExtender , although this tutorial does something else, but you can have a basic idea of how to write a custom control.

http://www.codeproject.com/KB/ajax/CustomAutoCompleteExt.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM