R
Radu
Hi. I need to implement a "phone-book" kind of feature - I have a list
of about 50.000 people, and the user should be able to find anyone by
typing either the (beginning of the) last name, either the (beginning
of the) first name.
Assume that the list of names is:
abc
abcd
abd
ac
adu
adv
aeg
bai
bah
I need incremental search, so by typing "ad" i get to chose from "adu"
and "adv", but if I type "adv" i see the details for Mr. ADV. Of
course, if I backspace to just "a" I should have to select from all 7
records which start with "a".
The app needs to be responsive (i.e. if possible a minimum of server
round-trips). How could I implement this ? OnTextChanged of a textbox
involves a post. Is it possible to do without a post ? Anyway, I have
no KeyDown/KeyPressed/KeyUp events here, as I would have in
traditional programming, so each key press should then be followed by
a post ? This would be at least very annoying ! Would JavaScript help
me in this instance ?
Also.... could loading the 50K records in a collection/list on
page_load help with the response time ? Is this not to expensive/slow
on load ?
Please advise on how to attack this problem !
Thank you very much
Alex.
of about 50.000 people, and the user should be able to find anyone by
typing either the (beginning of the) last name, either the (beginning
of the) first name.
Assume that the list of names is:
abc
abcd
abd
ac
adu
adv
aeg
bai
bah
I need incremental search, so by typing "ad" i get to chose from "adu"
and "adv", but if I type "adv" i see the details for Mr. ADV. Of
course, if I backspace to just "a" I should have to select from all 7
records which start with "a".
The app needs to be responsive (i.e. if possible a minimum of server
round-trips). How could I implement this ? OnTextChanged of a textbox
involves a post. Is it possible to do without a post ? Anyway, I have
no KeyDown/KeyPressed/KeyUp events here, as I would have in
traditional programming, so each key press should then be followed by
a post ? This would be at least very annoying ! Would JavaScript help
me in this instance ?
Also.... could loading the 50K records in a collection/list on
page_load help with the response time ? Is this not to expensive/slow
on load ?
Please advise on how to attack this problem !
Thank you very much
Alex.