A
Alex Nitulescu
Sorry, I'm really confused - I'm only at the middle of my book and already I
can count 4 methods to store values.
Yes, I know that cookies can not store much, but what is the difference
between storing data in the cache object, in a viewstate and in a Session.
I can say
Cache("MyData")=objDataSet
as well as
Session("MyData")=objDataSet
or
ViewState("MyData")=objDataSet
right ? (actually, I'm not sure about ViewState working with this kind of
data - I'll have to check it out). But still, is there a rule as to when
should you use one or the other method of storing values ?
I understand (imagine) that Cache and session work on the server, whereas
cookie and viewstate work on the client. Is this right ?
Please help me make some sens out of this - how could I chose one instead of
the other ?
Thank you
Alex
can count 4 methods to store values.
Yes, I know that cookies can not store much, but what is the difference
between storing data in the cache object, in a viewstate and in a Session.
I can say
Cache("MyData")=objDataSet
as well as
Session("MyData")=objDataSet
or
ViewState("MyData")=objDataSet
right ? (actually, I'm not sure about ViewState working with this kind of
data - I'll have to check it out). But still, is there a rule as to when
should you use one or the other method of storing values ?
I understand (imagine) that Cache and session work on the server, whereas
cookie and viewstate work on the client. Is this right ?
Please help me make some sens out of this - how could I chose one instead of
the other ?
Thank you
Alex