Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SqlDataReader Data Class Question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Versions des environnements
Environment:
C# 1.1
OS:
Windows 2000 SP3
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00954923
Message ID:
00954935
Vues:
16
>Your return code is called before the UsersReader.Close() ;
>
>change the order of the code
>FROM
>
>
>return UsersReader ;
>UsersReader.Close() ;
>
>
>TO
>
>
>UsersReader.Close() ;
>return UsersReader ;
>
>
>
>if you need to store what UsersReader is before returning, then create a var to hold the value and then closethe connection and return the var.
>
>-->Shawn

Shawn;

That produces the following error: "Invalid attempt to Fieldcount when reader is closed". Thank you for the attempt. This is a real learning experience. When I get through I will know a few things! :)

Tom
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform