beast
Newbie level 5
invalid attempt to read when reader is closed.
Hi,
m facing a very awefull problem, m using data reader object to get the data in a function of class. So when i call the function once without closing the data reader, then its errorless, but next time when i call the same function of the class it raise me an error that "first close the data reader object".
Another case if i close the data reader at the end of the same function then where m receiving or calling the function i can't get the values in data reader, or data reader is empty i think, and the error raise is
"Invalid attempt to read when reader is closed!"
Do u have any idea abt it? [/b]
Hi,
m facing a very awefull problem, m using data reader object to get the data in a function of class. So when i call the function once without closing the data reader, then its errorless, but next time when i call the same function of the class it raise me an error that "first close the data reader object".
Another case if i close the data reader at the end of the same function then where m receiving or calling the function i can't get the values in data reader, or data reader is empty i think, and the error raise is
"Invalid attempt to read when reader is closed!"
Do u have any idea abt it? [/b]