Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to do this?
Message
From
06/10/2001 17:32:38
Fausto Garcia
Independent Developer
Lima, Peru
 
General information
Forum:
Internet
Category:
Active Server Page
Title:
Miscellaneous
Thread ID:
00564820
Message ID:
00565204
Views:
18
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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform