If you have used the AJAX Toolkit AutoCompleteExtender, you know it queries a web service continueously as user is typing. Same as when you search on Google or Yahoo, it suggests kewords as you type. My question has nothing to do with, just give you a context.
How to make the server end string as fast as possible. Say I have 50,000 keywords that can be read from a static file into a generic List or any other collection type easily. What's the best way to implement the partial string match? say I want to start matching when user types in 2 characters. Doing List
澳土, hope all the reading you do can help. Thanks dude.
澳土及other .NET junkies, 請教string search
所有跟帖:
• 淺見啊~~ -LiYouCai- ♂ (256 bytes) () 01/20/2009 postreply 22:06:02
• 兄台所見極是 -catcherintherye- ♂ (1195 bytes) () 01/20/2009 postreply 22:46:54
• gotta be careful about the size of collection -澳洲老土- ♂ (208 bytes) () 01/21/2009 postreply 00:03:46
• 初步的想法.... -澳洲老土- ♂ (1191 bytes) () 01/20/2009 postreply 23:05:43
• 補充:solution 1可以用regular expresion,當然... -澳洲老土- ♂ (66 bytes) () 01/20/2009 postreply 23:15:58
• For solution 2. read this..... -澳洲老土- ♂ (419 bytes) () 01/21/2009 postreply 00:15:36
• Thanks a lot. You gave me some additional leads. -catcherintherye- ♂ (0 bytes) () 01/21/2009 postreply 14:44:10