Click here to Skip to main content
15,917,628 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
can we store the datatable on client machine using cookies or any other way??
Posted

 
Share this answer
 
Do not store datatable in cookies, because cookies can be disabled in client machine and cookies length may be small. You can store the same in a "div" element and make it invisible to client.
 
Share this answer
 
Storing Datatables in Cookies is not a recommended one ... because the size of cokkie is small and in some cases it may disabled by the brower...
Send the question in detail so that there may be another option to check out...

Happy Coding:cool:
 
Share this answer
 
As everyone suggested that storing big data in cookie is not advisable.

Instead of storing the data in the cookie you can use AJAX to fetch the data from server side whenever required.
 
Share this answer
 
Response.Cookies.Add(dt);//here dt is your datatable.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900