| Andrew 2004-04-21, 10:24 am |
| ViewState is posted back (round tripped) to the
Server/Browser and the data is contained in a hidden
control. SessionState is stored on the server and is not
posted back (unless it is required to be displayed of
course ). You must consider issues such as HTML
payload, security, Server loading, data type (ie
Viewstate is serialised and best suited for 'simple' data
types cf SessionState which can handle any .Net datatype.
Both are browser independent.
That's about all I can recall,
Andrew
>-----Original Message-----
>does anyone know the diffrance between
>
>ViewState["variable"]
>
>and
>
>Session["variable"]
>
>and when to use each of them
>?
>
>.
>
|