Results 1 to 3 of 3

Thread: SqlDataReader

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2005
    Posts
    21

    SqlDataReader

    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

  2. #2
    Member Nikhil Aggarwal's Avatar
    Join Date
    Jun 2005
    Location
    New Delhi, India
    Posts
    36

    Re: SqlDataReader

    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.
    Nikhil Aggarwal

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: SqlDataReader

    Why not re-retrieve the data in the second page?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width