I am looking to create intellisense for a series of fields in a .net web form that will enable a user to click one of the options, which will in turn fill out a series of fields (name, address etc). This was pretty trivial to implement using c#.net and ajax. However, recently I was forced to encrypt some of the key fields that is being searched on against the database, so the feature is now broken. Our only method of decrypting these searchable fields is currently in the C#.net.
To fix the feature, I was thinking of either: a) when the page loads, grab all of the records and store in an array in memory (unencrypted) and as the user keys in the search field use linq or lambda to grab the record(s) of interest. b) when the page loads, store all of the records in a js array (unencrypted) and perform the search client side.
Which would be the best route to go with performance considerations for both my web server vs the client's browsing experience?
I'm thinking this would be < 100k records.