ASP.NET
  Home arrow ASP.NET arrow Bookmarking and Moving through Records wit...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Bookmarking and Moving through Records with ADO
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 8
    2006-06-07

    Table of Contents:
  • Bookmarking and Moving through Records with ADO
  • Accessing data fields and rows in a recordset
  • Moving through the Recordset and Bookmarking
  • Binding the recordset to Controls on the form

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Bookmarking and Moving through Records with ADO


    (Page 1 of 4 )

    In this tutorial we will see some of the basic features of ADO's recordset as applied to data retrieved using a simple select statement on a table in the Northwind sample database. You will also see how you may bind the data to controls which are unbound at design time using code.

    Introduction

    Moving through the recordset is often required while, for example, trying to locate a record in order to review it or make changes to it. The ability to come back to a given record after traversing the records is equally important. ADO supports this ability through several of its methods. However, since it has several ways of supporting the functionality of recordsets, this ability to move freely is restricted to those cursor types that support free movement

    This tutorial will assume that the reader has reviewed the first three tutorials on ADO's connection object and the recordset object (listed below). Only a few of the properties of the recordset object were described; in the present tutorial you will see a number of methods related to navigation through the data. This tutorial also shows how you may bind the data to controls which are unbound at design time using code.

    The first three tutorials on ADO include "Cursors in MS Access and ADO," "Using the Recordset with MS Access and ADO," and "Connecting to Microsoft Access with ADO," with the most recent one listed first. Please click on the links if you need to refresh your memory or have not read these articles before. 

    Review of Properties and methods

    Here is a bulleted review of properties and methods from the three previous tutorials. Some aspects of moving the data were discussed to clarify the BOF, EOF properties in the context of cursor type property. In this tutorial a few more properties needed for bookmarking records and moving through the records will be discussed.

    • Connection Open()
    • Connection Close()
    • Connection Version
    • Connection State
    • Connection ConnectionTimeout
    • Recordset Status
    • Recordset CursorType
    • Recordset CursorLocation
    • Recordset ActiveConnection
    • Recordset AbsolutePosition
    • Recordset LockType
    • Recordset RecordCount
    • Recordset BOF
    • Recordset EOF
    • Recordset MoveNext
    • Recordset MovePrevious
    • Recordset MoveFirst

    More ASP.NET Articles
    More By Jayaram Krishnaswamy


       · Yes, there are lot more things to discuss with ADO. Even the 'Bookmark' is not...
     

    ASP.NET ARTICLES

    - Source Code for Saving and Retrieving Data w...
    - Using GridView to Save and Retrieve Data wit...
    - Handling Dynamic Images in ASP.NET 3.5 AJAX ...
    - Retrieving Data with AJAX and the GridView C...
    - Playing with Images in ASP.NET 3.5 AJAX Appl...
    - Saving and Retrieving Data with AJAX
    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX
    - Building a Simple Storefront with LINQ
    - Developing a Dice Game Using ASP.NET Futures...
    - Completing an ASP.NET AJAX Server-Centric Ba...
    - Information Management for an ASP.NET AJAX S...
    - Comment and Order Management for an ASP.NET ...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT