using key/value collection in session

Posted by jumpdart on Stack Overflow See other posts from Stack Overflow or by jumpdart
Published on 2011-01-13T19:45:25Z Indexed on 2011/01/14 16:53 UTC
Read the original article Hit count: 178

Filed under:
|
|
|

Question: What is a good datatype to keep in session for a large collection of keys and values to frequently reference and update?

Application: Updating an old .NET web app with a million pages and grids to have all the grids maintain their sort. They currently access helper code to format themselves graphically on load and on sort. I figured I could add to that code to check for a key based on the page and grid id in a collection in session to see if it has a previous expression on load. and the on sort update/add its appropriate item in the collection.

Thoughts?

Dictionary vs NameValueCollection

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET