int totalPages = ((totalRecords - 1) / pageSize) + 1; // C#
pageCnt = Fix((recordCnt + pageSize - 1) / pageSize) // ASP
[code]
其他
[code]
string str = String.Join(",", intList.ConvertAllstring>(new Converterint, string>(m => m.ToString())).ToArray());
// C# String.Join 对 int,核心是 int List 转 string List
// 看更简单的(.NET 4 适用):
string str = String.Joinint>(",", intList);