i have SqlDataReader variable in one page which
retrive results from database and i want to dispaly results in another page
i tried using application object but the following error appears
Invalid attempt to read when no data is present
Printable View
i have SqlDataReader variable in one page which
retrive results from database and i want to dispaly results in another page
i tried using application object but the following error appears
Invalid attempt to read when no data is present
Try using a DataSet instead. SQLDataReader's need an open connection to work correctly. In all probablity when you Redirect to the second page, the reference to the connection is killed and hence it doesnt work.
Why not re-retrieve the data in the second page?