I selected Some records from the Db into thedatareader.How can I know the Number of recordsReturned.I tried all the properties But Failed.
Since a DataReader can only see one record at a time it can't count anyupcoming records.www.learnasp.com/freebook/learn/datatable.aspxa datatable has what you want
It can ... you usereader.RecordsAffected but its tricky ... you have to ref it when used infunction parameter.