caching results for autocomplete repeater/datalist
Posted on 2011-09-05
I need to write an autocomplete control which reads from a cached list of records, there are 1000+ so its too many for it to search the database every keystroke.
I want it to cache once an hour unless the cache doesn't already exist, It will need to cache a name field, an id field and an additional text field per record and return a name contining text in a textbox control..
I'm a little familiar with the caching, but im not sure how to get the cached results into an asp.net repeater as a datasource..
can someone show me how to cache the results and output them to a repeater or datalist control please?