I have a ASP web application that uses listboxes. My dilemma is that changes in items selection on the listboxes will happen fast and frequently, so doing a postback to get the information that I need would end up being very slow on the client side.
My question is:
What is the best way to store data on the client side? or should I just use something like Postback, or ajax?
The information that needs to be stored could be in a single string for each item that I can split, but there will need to be the information for all of the items in the Listbox and the number of items in the Listbox is unknown.
Please let me know what you think would be the best place to have the information.
It really depends on how far you want to take things. Postback will be quick to implement but may prove to be awkward and slow. Using ajax in one way or another will speed things up considerably and there are many ways this can be used. The extent of which will be determined by how much time you want to spend developing it vs the benefit to the user / frequency of use.
As a specific answer I would suggest AJAXing the data in, but whether you do this every time you need it or once on load, would depend on application/context.