c# - store specific datatable data to hiddenfield in asp.net -
i'm new asp.net , i'm trying save specific info datatable hiddenfield.
i calling datatable thru command:
somedetails = someviewbll.getdetails(data1.value, data2.value); i want see output of somedetails variable in console. have tried using tutorial:
how can view contents of datatable or dataview in immediate window
but says null. when check row count, shows has 1 row.
is there way me see contents of datatable?
iterate through table , code console writing:
(int = 0; < somedetails.rows.count; i++) { string row = ""; (int j = 0; j < somedetails.columns.count; j++) { row += somedetails.rows[i][somedetails.columns[j].columnname].tostring() + " - "; } system.diagnostics.debug.writeline(row); } c# asp.net datatable
No comments:
Post a Comment