How to Pass Datatable in Session C#

First assign datatable into Session.

 Session["DT"] = dt;

 Response.Redirect("Page2.aspx");

In Page2.aspx page Load function call the thease Code to Get Session Table.

DataTable dtm = (DataTable)Session["DT"];

Comments

Popular posts from this blog

Insecure cookie setting: missing Secure flag

Maximum Stored Procedure Function Trigger or View Nesting Level Exceeded (limit 32) in SQL Server

Display Line Chart Using Chart.js MVC C#