请问为什么在执行while(dr.read())的时候不读取dr里的内容呢(急)
请问为什么在执行while(dr.read())的时候不读取dr里的内容呢(急)html += "</tr>";
while (dr.Read())
{
html += "<tr>";
html += "<td style=\"background-color:#F1E1FF;\">" + dr[0].ToString() + "</td>";
html += "<td style=\"background-color:#F1E1FF;\">" + dr[1].ToString() + "</td>";
html += "<td style=\"background-color:#F1E1FF;\">" + dr[11].ToString() + "</td>";
html += "<td style=\"background-color:#F1E1FF;\">" + dr[6].ToString() + "</td>";
html += "<td style=\"background-color:#F1E1FF;\"><a href='xfw_addDeveloper.aspx' target=\"MainForm\">添加</a> <a href='xfw_Selkaifs.aspx?action=" + dr[0].ToString() + "' target=\"MainForm\">修改</a> <a href='" + delteDevlop(dr[0].ToString()) + "'>删除</a></td>";
html += "</tr>";
}
html += "</table>";
dr.Close();
dr判断过 是不等于空的