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 lis开发者_运维技巧t 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
精彩评论