User1559292362 posted
Hi progy85,
What is wrong in my code?
According to your code snippet, if the value of session variable named HttpContext.Current.Session["slip"] is null, it seems that the variable named Slip_DataTable doesn't have any rows. please debug your code check if the variable named Slip_DataTable
has some rows by using the following code.
DataTable Slip_DataTable = GetSlipDataTable();
int count = Slip_DataTable.Rows.Count;
In addition, could you please provide your ASPX page code and error message if it has.
Best regards,
Cole Wu