locked
Store multiple tables in Session/ViewState RRS feed

  • Question

  • User1126057398 posted

    How Can one Store multiple tables in single Session/ViewState?

    Tuesday, January 28, 2020 12:04 PM

All replies

  • User-1780421697 posted

    You can save DataSet that contains several table in Session/ViewState, If you want to store single table then just 

    DataTable dtTest = new DataTable();
    Session["dtTest"] = dtTest; 
    
    //To retrive 
    DataTable dt = (DataTable) Session["dtTest"];
    

    Tuesday, January 28, 2020 12:30 PM