Store a data table specific to user
-
How can i a store a data table value, that i required in more than one page and should be specific to user?.....
anujose wrote:
How can i a store a data table value, that i required in more than one page and should be specific to user?.....
Store
DataTable
object inSession
-
anujose wrote:
How can i a store a data table value, that i required in more than one page and should be specific to user?.....
Store
DataTable
object inSession
Can you give me a example?is it same like i am storing in a cache variable ? Like this Cache["dt"]=dttable; dttable=(datatable) Cache["dt"]; can i use ? Session["dt"]=dttable; dttable=(datatable) Session["dt"]; if it's possible is it good to store a datatable to a seesion Variable?
-
Can you give me a example?is it same like i am storing in a cache variable ? Like this Cache["dt"]=dttable; dttable=(datatable) Cache["dt"]; can i use ? Session["dt"]=dttable; dttable=(datatable) Session["dt"]; if it's possible is it good to store a datatable to a seesion Variable?
You can go with second method. Cache is not user specific. It will be common for all users accessing website. Session keeps datatable user specific.
anujose wrote:
if it's possible is it good to store a datatable to a seesion Variable?
This depends on the size of your datatable. If it is pretty big, then this method might cause performance issues. If it is small object then I think there is no issues.