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:
00954935
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform