Вопрос

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