D
Drew
Hello-
I have am ASP.Net DataGrid object that I bind to from the result of a
query. In order to not retrieve this dataset again when the user
presses forward and back, I keep the dataset in a session variable:
Session["ID"] = dt;
However, I have learned that if the user does not have cookies
enabled, this does not work. Therefore, I have decided that if the
user does not have cookies enabled I am gong to serialize the
DataTable and save it in the database. Upon return to the page, I
would retrieve the serialized DataTable, un-serialize it and display
it again. I have a few questions:
1. Does anyone know how to serialize a DataTable and then un-serialize
it back to a DataTable when I return to the page?
2. Is there a quick and easy way to determine if the user has cookies
enabled or disabled, which works for IE, Netscape, etc?
3. Does anyone know if there is a better way to do this?
Thank you,
Drew
I have am ASP.Net DataGrid object that I bind to from the result of a
query. In order to not retrieve this dataset again when the user
presses forward and back, I keep the dataset in a session variable:
Session["ID"] = dt;
However, I have learned that if the user does not have cookies
enabled, this does not work. Therefore, I have decided that if the
user does not have cookies enabled I am gong to serialize the
DataTable and save it in the database. Upon return to the page, I
would retrieve the serialized DataTable, un-serialize it and display
it again. I have a few questions:
1. Does anyone know how to serialize a DataTable and then un-serialize
it back to a DataTable when I return to the page?
2. Is there a quick and easy way to determine if the user has cookies
enabled or disabled, which works for IE, Netscape, etc?
3. Does anyone know if there is a better way to do this?
Thank you,
Drew