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:
00954936
Vues:
16
You are accessing the object out side of the struct, right?

What is the code that you are using to call the struct?

It appears you are trying to get a fieldcount after the UsersReader has been closed.

Try doing the close after you open the reader in a seperate method, something like below.

OR

Just a thought.
Open the connection in a method
Get the Data in another method
use the data in a method
Close the connection in a method


-->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
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform