c# - appending a dataset to a session variable -
i know how add dataset session
dataset ds = getresults(); session["xyz "] = ds;
is there way can append dataset session ?
i trying
session["xyz"] = ds + ds1; //ds1 dataset or session["xyz"] = ds + (dataset)session["xyz"];
it throws error .. there way ?
dataset objects have merge method
((dataset)session["xyz"]).merge(ds1) ;
Comments
Post a Comment