- Cache
- Application
- Session
This is absolutely incorrect!
So, for example:
DataTable dtEmployees = (DataTable)Session["Employees"];
DataRow row = dtEmployees.Rows[5];
row["FirstName"] = "Steve";
I do NOT have to use the following line:
Session["Employees"] = dtEmployees;
Rather, right after the name was changed above, I could have done this:
((DataTable)Session["Employees"]).Rows[5]["FirstName"]
and "Steve" would be returned!
No comments:
Post a Comment