G
Gandalf
Say I have persisted a DataSet in the ViewState of a page, and that when the
page is posted back I make several references to that dataset like so:
DataSet MyDataSet = (DataSet)ViewState["VsDataSet"]; //C#
Does this have to deserialize the dataset every time it is referenced... or
is it only done once when the page is posted back? I'm just wondering if I
should assign the DataSet to a local variable in the PageLoad method or if
it's OK to continually reference it via the ViewState.
TIA
page is posted back I make several references to that dataset like so:
DataSet MyDataSet = (DataSet)ViewState["VsDataSet"]; //C#
Does this have to deserialize the dataset every time it is referenced... or
is it only done once when the page is posted back? I'm just wondering if I
should assign the DataSet to a local variable in the PageLoad method or if
it's OK to continually reference it via the ViewState.
TIA