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

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform