在会话中使用键/值集合
问题:对于大量键和值的频繁引用和更新来说,保持会话状态的良好数据类型是什么?
应用: 更新具有一百万个页面和网格的旧 .NET Web 应用程序,以使所有网格保持其排序。他们当前访问帮助程序代码,以便在加载和排序时以图形方式格式化自己。我想我可以添加到该代码中,以根据会话中集合中的页面和网格 ID 检查键,以查看它是否具有加载时的先前表达式。并在排序时更新/添加其适当的项目在集合中。
想法?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
字典
有效Dictionary<TKey, TValue>
works