Web Matrix Does Not Like Min
Hello and thank you for taking a moment to read this message. I am trying to do some custom paging with a data grid. The following statement I am trying to use to calculate the ending index of a record within a page:
EndOfPage = Min((PageSize * (CurrentPage - 1)) + (PageSize - 1), ((WholePages * PageSize) + Leftover - 1))
Web Matrix keeps throwing me this error:
Compiler Error Message: BC30451: Name 'Min' is not declared.
Does anybody have any suggestions? I would greatly appreciate the help.
Thanks,
Jason
|