Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All

I am trying to return datareader using method .but its getting closed when i am calling this method in my code and because of this I cant read it.
Is there any solution for the same?


please revert...

Thanks
Posted
Updated 26-Apr-11 19:39pm
v2
Comments
Abhinav S 27-Apr-11 1:38am    
You need to post your code here so someone can help you.

 
Share this answer
 
Comments
Albin Abel 27-Apr-11 12:28pm    
Good links. My 5
Sandeep Mewara 27-Apr-11 12:34pm    
Thanks Albin.
DataReader does not support disconnected mode. Once the connection object is closed, DataReader will be closed. You can use DataTable instead of DataReader to support disconnected mode.
 
Share this answer
 
Comments
Albin Abel 27-Apr-11 12:27pm    
Good call. My 5
Venkatesh Mookkan 27-Apr-11 12:28pm    
Thank you.
But send us the code,so that we can help you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900