Hello Ahmad!
You can suppport all the tasks on a single ASP page using a parameter. First define the valid values your parameter will recognize, for example: if the page is requested with no parameter value then display the first record, use "P" for "Previous page" and "N" for "Next page". Then include the parameter value on your navigation tags. Assuming your page name is "gbook.asp" you could write:
href="gbook.asp?action=P"
for the previous record anchor tag reference and
href="gbook.asp?action=N"
for the next record anchor tag reference.
Then you could code your page by analyzing the value of the parameter in your ASP code:
value=Response.QueryString("action")
if action="P" then
Retrieve previous record information here
else
if action="N" then
Retrieve next record information here
else
Get and show first record info
end if
end if
Sorry for jumping in, but wanted to contribute with my two cents. Hope this helps!
Solo se que nada se
Fausto J. Garcia Pino - MCSD.NET
.NET, Oracle, Tronador & Fondismo!