if (ModelState.IsValid)
{
DataTable dt = new DataTable();
dt = obj_Data.selData();
if (dt.Rows.Count != 0)
{
string [,] arr1=new string[dt.Columns.Count+1,dt.Rows.Count+1];
for (int i = 0; i < dt.Rows.Count; i++)
{
for (int j = 0; j < 3; j++)
{
arr1[i,j] = dt.Rows[i][j].ToString();
}
}
return View(arr1);
}
}
return View();
我正在将数据搜索结果传递到数据表格式到控制器上,如何在视图中显示此数据?