|
Subject:
|
Web Matrix Does Not Like Min
|
|
Posted By:
|
jazzcatone
|
Post Date:
|
2/21/2006 12:21:25 AM
|
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
|
|
Reply By:
|
rstelma
|
Reply Date:
|
2/21/2006 2:15:42 PM
|
It appears that MIN is not a function in .NET. Have you written a Sub or Function by the name of Min?
|