每次運行到這裡,
string sqlSel2 = "select EMP_NAME from cs_renshi a,cs_tian b where a.EMP_NO=b.taFushen2 and b.id='" + Request["id"].ToString() + "'";
SqlDataAdapter myApte2 = new SqlDataAdapter(sqlSel2, con);
DataSet myDN2 = new DataSet();
myApte2.Fill(myDN2, "cs_renshi");
DataRowView rowVien2 = myDN2.Tables["cs_renshi"].DefaultView[0];
lblFushen2N.Text = Convert.ToString(rowVien1["EMP_NAME"]);就會出現 Index 0 is either negative or above rows count. 這個錯!我知道是沒有數值,我應該怎麼改才不報這個錯呢??求大俠指點
string sqlSel2 = "select EMP_NAME from cs_renshi a,cs_tian b where a.EMP_NO=b.taFushen2 and b.id='" + Request["id"].ToString() + "'";
SqlDataAdapter myApte2 = new SqlDataAdapter(sqlSel2, con);
DataSet myDN2 = new DataSet();
myApte2.Fill(myDN2, "cs_renshi");
DataRowView rowVien2 = myDN2.Tables["cs_renshi"].DefaultView[0];
lblFushen2N.Text = Convert.ToString(rowVien1["EMP_NAME"]);就會出現 Index 0 is either negative or above rows count. 這個錯!我知道是沒有數值,我應該怎麼改才不報這個錯呢??求大俠指點
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货