Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SqlDataReader in a Data Class
Message
 
À
26/10/2004 16:33:04
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Versions des environnements
Environment:
ASP.NET
OS:
Windows 2000 SP3
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00954589
Message ID:
00954917
Vues:
12
Randy;

Thank you for the suggestion. I will post what I came up with in a seperate post as I have a question about the result.

Tom


>you can create the datareader object as public in the class
>if I had it accessible I would post it, but below should give you
>the general ideal.
>
>public class dataclass
>
> public objDR as sqlDataReader
> public objConn as sqlConnection
>
>
> public sub LoadReader()
> ' open connection and leave open
> ' do stuff to load reader
> end sub
>
>end class
>
>
>' to access objDR
>dim clsdata as new dataclass
>
>clsdata.loadReader
>
>clsdata.objDR.Read
>
>clsdata.objConn.Close
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform