asp.net mvc 2 - how does the below code work??? explain -


return math.min(firstofpage + pagesize - 1, totalcount); 

explain code please

returns either last record number on page, or total number of records, whichever smaller. keep returning more records available on last page.


Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -