开发者

Making autocomplete extender in ASP.NET

开发者 https://www.devze.com 2023-02-27 06:36 出处:网络
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 aut

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

0

精彩评论

暂无评论...
验证码 换一张
取 消