Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SqlDataReader Data Class Question
Message
General information
Forum:
ASP.NET
Category:
Web forms
Environment versions
Environment:
C# 1.1
OS:
Windows 2000 SP3
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00954923
Message ID:
00954936
Views:
15
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/
Previous
Reply
Map
View

Click here to load this message in the networking platform