Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do this?
Message
De
06/10/2001 17:32:38
Fausto Garcia
Independent Developer
Lima, Pérou
 
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Titre:
Divers
Thread ID:
00564820
Message ID:
00565204
Vues:
19
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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform