【发布时间】:2014-12-08 09:48:12
【问题描述】:
因此创建一个数据表并遍历其中的所有行。问题是 DataRow r 包含一个 itemArray[] 我也需要运行。
DataTable currentAttribs = //results for datatable;
foreach (DataRow r in currentAttribs.Rows)
{
//foreach itemArray[] in r do the following
{
tableRow = "<TR><TD>" + r[0].ToString() + "</TD></TR>";
Literal lc = new Literal();
lc.Text = tableRow;
divFeatureInfo.Controls.Add(lc);
{
}
不确定在 'r' 中遍历 itemArray 的语法...谢谢
【问题讨论】:
标签: c# asp.net asp.net-mvc