Using Session to store Datatable

后端 未结 5 951
时光取名叫无心
时光取名叫无心 2021-01-13 19:04

currently we are using Sessions to store datatables in our pages so that we don\'t have to make Database hits to get the same datatable again and again. But my worry is that

5条回答
  •  灰色年华
    2021-01-13 19:14

    If your datatable has smaller number of records and it does not contain sensitive data then you can use ViewState as well but data should be smaller as this approach will serialize the data and store it at client side and then gets the data from client side to store at server side.

提交回复
热议问题