单项选择题直接在asp.net MVC 里使用foreach 循环输出数据,以下代码片段正确的是()
A.%foreach (var item in Model.log){Response.Write(item.log_id);}%>
B.%#foreach(DataRow rs in dt.Rows){Response.Write(rs["name "].ToString());}%>
C.%=foreach(DataRow rs in dt.Rows){Response.Write(rs["name "].ToString());}%>
D.%@foreach(DataRow rs in dt.Rows){Response.Write(rs["name "].ToString());}%