Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ado RecordSet Scope in .Asp Page
Message
Information générale
Forum:
Visual Basic
Catégorie:
Applications Internet
Divers
Thread ID:
00180762
Message ID:
00180906
Vues:
14
>I need to create a recordset and be able to access it from within several Sub Routines or Functions. What is the best method to do this inside of an .Asp page? Is it a good idea to give recordsets session scope? (I have a VB COM object returning the recordset to the page. The COM object takes an SQL statement as a parameter)


If you only need the recordset in one ASP page, declare the varible outside a sub or function and it's global to the page.

If you need the recordset from more then one ASP page, you can store it in a session variable.
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform