Storing and retrieving datatable from session

前端 未结 5 1844
别跟我提以往
别跟我提以往 2020-12-17 16:52

How to store a datatable in session and to retrieve the values from the session in c#.net?

5条回答
  •  青春惊慌失措
    2020-12-17 17:28

    this is just as a side note, but generally what you want to do is keep size on the Session and ViewState small. I generally just store IDs and small amounts of packets in Session and ViewState.

    for instance if you want to pass large chunks of data from one page to another, you can store an ID in the querystring and use that ID to either get data from a database or a file.

    PS: but like I said, this might be totally unrelated to your query :)

提交回复
热议问题