try
{
string source = "Data Source=**;Initial Catalog=*_**;User ID=**;Password=***;Min Pool Size=5;Max Pool Size=150;";
string sql = "select c.title, a.RegNm, b.itemNm, b.Before, b.BeforeUnit, a.one, a.two, a.three, a.four, a.six, a.seven, a.TargetUnit from N_***_***_TBL2 a, N_***_TBL b, N_***_TBL c";
sql += " where a.RegId='" + EmpNo + "' and a.RegId = b.RegId and a.ProjectRegNum = b.ProjectRegNum and a.WorkNum = b.WorkNum and a.ProjectRegNum = c.ProjectRegNum and a.itemNm = b.itemNm order by a.RegDate desc";
SqlConnection conn = new SqlConnection(source);
conn.Open();
SqlDataAdapter adapter = new SqlDataAdapter();
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader reader = cmd.ExecuteReader();
while (reader.Read())
{
repeat1.DataSource = reader;
repeat1.DataBind();
}
reader.Close();
conn.Close();
이런식으로 코드 비하인드(.cs)에서 데이터 바인딩 시키고,
본 페이지(.aspx)에서 출력하는데요.
DB에는 5개의 행이 있지만,
웹 페이지에는 4개의 행만큼 데이터만 출력됩니다.
아무리 봐도 잘못된 게 없는데. 어디서 잘못된 거죠??????


while (reader.Read())
{
repeat1.DataSource = reader;
repeat1.DataBind();
}
이 부분..
굳이 그러실 필요 없고 while 문 필요없이 repeat1.DataSource = reader; 한번이면 끝납니다.