IF not entering condition

Asked

Viewed 19 times

1

Debugging the system code I am maintaining, but I noticed that "if (_start + 15 >= _Count) Return;" does not allow the code to continue, it goes back to Return. What would be the suggestion to resolve this? Since it should enter the condition and perform pagination, changing the grid data.

 case "btnNavNext":
{
var count = 0;
if (_start + 15 >= _count) return;
_currentPage++;
var data = getCaptureValue2(out count, _start + 30, _limit);
StoreSales.PageSize = count;

GridComercio.GetStore().DataSource = data;
GridComercio.GetStore().DataBind();
}
break;

  • We have no way of knowing, there is a huge context that only you know. Without fully understanding the problem, how it gets there, and probably other information we can not help, put everything necessary for the question to be reopened.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.