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();
我开玩笑地将数据搜索结果以数据表格式传递给控制器,我怎样才能显示这个数据或视图?