Thursday, February 19, 2009

Add paging

var PageParams1 = new PageParams(
["SessionId", String, ""],
["Command", String, ""],
["PAGENUMBER", String, "1"],
["ROWPERPAGE", String, "3"]

TableParams.ROWPERPAGE = PageParams1.ROWPERPAGE;
TableParams.PAGENUMBER = PageParams1.PAGENUMBER;

xmlTable = LsdbCommand("LSDB.stored_proc", TableParams);


in code:
<%=Paginator(TableParams["ROWPERPAGE"], TableParams["PAGENUMBER"])%>