viewstate

Advantages of Cache vs Session

萝らか妹 提交于 2019-11-26 03:54:08
问题 What is the difference between storing a datatable in Session vs Cache? What are the advantages and disadvantages? So, if it is a simple search page which returns result in a datatable and binds it to a gridview. If user \'a\' searches and user \'b\' searches, is it better to store it in Session since each user would most likely have different results or can I still store each of their searches in Cache or does that not make sense since there is only one cache. I guess basically what I am