DataSet ds = new DataSet(); Session["var"] = ds.Tables[0];
DataSet ds = new DataSet(); ds = (DataSet)Session["var"];
Session
//for assign DataSet ds = new DataSet(); Session.Add("Name", ds); // for retrieve ds = (DataSet)Session["Name"];
sqlDataAdapter1.Fill(dSet); System.IO.StringWriter sw = new System.IO.StringWriter(); // Write the DataSet to the Application state. dSet.WriteXml(sw); Application["dSet"] = sw.ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)