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  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
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

    - ASP.NET DotNetNuke Installation with Visual ...
    - Using ASP.NET with a MySQL Database
    - Using ASP.NET with an MS Access Database
    - Adding Content to a Static ASP.NET Website
    - Building a Static ASP.NET Website in a Basic...
    - Develop Your First ASP.NET Website with Visu...
    - Run ASP.NET in Windows XP Home with Cassini ...
    - How to Test a Web Application
    - How to Add Code and Validation Controls to a...
    - Working in Source and Split Views to Build a...
    - How to Build a Web Form for a One-Page Web A...
    - How to Develop a One-Page Web Application
    - An ASP.NET Web Application in Action
    - Developing ASP.NET Web Applications
    - An Introduction to ASP.NET Web Programming





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 8 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek