We can store Objects in HTTPContext.Current.Items for small usages.we can add objects into Items collection just like normal Collections we are using.
LISTlistEmployee = HTTPContext.Current.Items as LIST ;
if(listEmployee == null)
{
listEmployee = Getyourdata();
HTTPContext.Current.Items["Key"] = listEmployee ;
}
0 comments:
Post a Comment