Passing datatables from main to global handler

Hi guys Im trying to pass datatables with
Errorinfo.variables(“dt”).tostring but the output is only “Tablesname”

I want to get the data from tables if the errors coming

If you want to retrieve data from a DataTable, using ErrorInfo.Variables("dt").ToString would only give you the name of the DataTable (“dt”) as a string, not the actual data. To access the data, you need to use the DataTable methods, such as .Rows` or .Columns .
use ErrorInfo.Variables(“dt”).Rows


Thank you for reply

I solved this im using

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.