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

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -