@model DataSet
@{
Layout = null;
}
@{
ViewBag.Title = "Index";
}
Index
@dc.ColumnName |
|---|
@dr[Model.Tables[0].Columns[i]] |
The above code is supposed to show value from a dataset in a table where I use the column name as table header.
But this is far from showing me the result in a table, I dunno why.
Thank in advance
Alex

Salman BegRank #284 · 8.8K reputationPosted May 26, 2020, 4:57 PM EDT
Schleid AlexRank #3,087 · 464 reputationPosted May 26, 2020, 6:27 PM EDT
Salman BegRank #284 · 8.8K reputationPosted May 26, 2020, 7:05 PM EDT