When working with asp.net webform, I encountered an issue while trying to call data using an ajax call. Although a similar function on another page works without errors, on this particular page, I am facing an error.
The error I am getting is pageCountInt being displayed as NaN
<div id="loadmore" class="loadmore-w"><p id="loadmore-btn" >Load more</p></div>
The table contains about 6 records, and initially, it loads the first 2 records successfully. However, when clicking on the load more button, it fails to load additional data and displays the pageCountInt
as NaN.
var pageIndexInt = 0;
var pageCountInt = 0;
GetInterviewRecords();
$('#loadmore-btn').click(function() {
// console.log("button clicked");
GetInterviewRecords();
});
...
Upon further investigation, I realized that the pageCountInt was being calculated based on XML data. To address this issue and improve the code, consider converting it into JSON format or resolving the inconsistencies causing the NaN value for pageCountInt.