Modify the procedure to take 2 extra IN parameters:
p_from in integer,
p_to in integer
These can then be used in the query like this:
Code:
select empno, ename, rn from
( select empno, ename, rownum rn from
( select empno, ename from emp
order by empno
)
where rownum <= p_to
)
where rn >= p_from;
Then call it from your ASP page with p_from and p_to values like 1 and 15, 15 and 30, 31 and 45 etc.