怎么将sql语句查出来的值放入到label中
string strT1 = DateTime.Now.ToString("m");
String sqlid = "select AttID from D_Attendance ";
DataTable table = webService.ExcuteSelect(sqlid);
for (int i =1; i<7; i++)
{
if (table.Rows[i]["AttID"].ToString() == "a")//判断出勤之后就不能出勤
{
Button1.Enabled = false;
Button2.Enabled = true;
}
帮看看 为什么用for循环就不对呢
总是提醒 第多少行没有值