M
mohaaron
Can anyone tell me why when trying to use the following code to
deserialize the viewstate it takes a long time with a large viewstate.
This really surprised as the viewstate is big, but not that big. The
formatter.Deserialize method takes a couple seconds which is a long
time.
protected override object LoadPageStateFromPersistenceMedium()
{
object viewState;
string tempViewState;
tempViewState = (string)this.Cache["ViewState"];
LosFormatter formatter = new LosFormatter();
try
{
viewState = formatter.Deserialize(tempViewState);
}
catch(Exception x)
{
throw new HttpException ("Invalid viewstate:" + x.ToString());
}
return viewState;
}
deserialize the viewstate it takes a long time with a large viewstate.
This really surprised as the viewstate is big, but not that big. The
formatter.Deserialize method takes a couple seconds which is a long
time.
protected override object LoadPageStateFromPersistenceMedium()
{
object viewState;
string tempViewState;
tempViewState = (string)this.Cache["ViewState"];
LosFormatter formatter = new LosFormatter();
try
{
viewState = formatter.Deserialize(tempViewState);
}
catch(Exception x)
{
throw new HttpException ("Invalid viewstate:" + x.ToString());
}
return viewState;
}