문제

I've got an Application(ASP.NET with C#) in which I get results from an database (the index from Microsoft Indexing Service) which I afterwards show in an asp:Repeater. Often I get the desired results for example the Repeater shows 1500 of 1500 results, but sometimes the query finds 300 Results and the Repeater shows only 200 of them.

This is how I get the number of result records:

foreach (DataTable dt in queryResult.Tables)
{

   foreach (DataRow row in dt.Rows)
   {
       rows++;
   }
}

This is how I bind the Data to the Repeater:

if (queryResult.Tables.Count > 0)
{
   Result.DataSource = queryResult;
   Result.DataBind();
}

Does anyone have any ideas what could cause this problem?

도움이 되었습니까?

해결책

Problem solved. It wasn't the Repeater but the Microsoft Indexing Service which filled up all the space on the HDD of the server and then wasn't able to return proper results. I moved the index to a partition with more space and everything works just fine.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top