ccamarat
01-18-2005, 09:41 AM
Question for you more experienced folks out there. I'd like to know if there's an easier / more efficient solution than what I've got. Here's what I'm trying to do:
Using a text menu, search for text contained in any number of fields in a database
Display the matches in a vertical list
Allow the user to pick from those matches and add them to a selection. The user's selection is displayed and the items he has chosen are removed from the search
Allow the user to remove items from his selection and return them to the searchI thought about putting the logic on the server (using C#), but postbacks are annoying, and it would involve many trips to and from the server. The alternative is a javascript solution. My thinking is that I will populate a .js file that stores the database information in an array (~2,000 records), perform the searches on the client, and upload the data all at once. I'm curious to know what your thoughts are on either, and if there's any alternative approaches I'm not thinking of.
Thanks in advance.
-Chris
Using a text menu, search for text contained in any number of fields in a database
Display the matches in a vertical list
Allow the user to pick from those matches and add them to a selection. The user's selection is displayed and the items he has chosen are removed from the search
Allow the user to remove items from his selection and return them to the searchI thought about putting the logic on the server (using C#), but postbacks are annoying, and it would involve many trips to and from the server. The alternative is a javascript solution. My thinking is that I will populate a .js file that stores the database information in an array (~2,000 records), perform the searches on the client, and upload the data all at once. I'm curious to know what your thoughts are on either, and if there's any alternative approaches I'm not thinking of.
Thanks in advance.
-Chris