Database Code
  Home arrow Database Code arrow Finding Matching Records in Data Access Pa...
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? 
DATABASE CODE

Finding Matching Records in Data Access Pages
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 11
    2006-12-12

    Table of Contents:
  • Finding Matching Records in Data Access Pages
  • Using a textbox to find matching records
  • The code page and the code to search the EmployeeID
  • Using Combo boxes to find records

  • 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


    Finding Matching Records in Data Access Pages


    (Page 1 of 4 )

    In many types of customer service applications the main interest is in finding a record matching a certain value provided by the customer in the form of a customer identifier such as a Social Security number, a telephone number or other means. This kind of functionality can be implemented in Data Access Pages (DAP) by using the document object model of the various client objects combined with the Find() method of the RecordSet object.

    In a scenario such as the above, it is possible to populate a combo-box control with all the available customer identifiers and pick the one for the customer in question to get the information. Sometimes for security reasons this solution may not be acceptable, in which case the customer information representative would just type the information provided by the customer into an empty textbox, and the event raised by this action is used to find the information.

    In Data Access Pages, the data is retrieved in the form of tables and queries constituting the "Field List" of the Data Access Page. The "Field List" objects can be dragged and dropped onto the design pane of the DAP. The data is in the form of a record set which can be set to represent the DefaultRecordset for the MSODSC control that controls the data on the DAP. Also the various objects on the DAP are part of the client objects, with rich properties and events. It is possible to program these using the JavaScript (Jscript's) DOM model, or using the ECMA Script.

    This tutorial looks at the implementation of finding records in a table using both the Combo-box and the text-box control as the source of the text used for matching. This tutorial was prompted in part by the questions posed to some of the article blogs at this site.

    Creating a Data Access Page using the Wizard

    It will be useful for the reader to review the following articles in this site so that the present article will be little easier to understand:

    For purposes of illustration a new blank data base project is created into which the Employees table from an existing Northwind database will be imported. You will find the Northwind database in the Office folder of your computer. In the first example, the DAP will use a textbox control in addition to the various field objects. This textbox is used to find the keyword typed into this box; once the keyword is found, all the column elements for that row will be returned and displayed on the DAP. In the second case combo-boxes reveal existing entries for a keyword;  when a particular keyword is selected, the entire row will be retrieved.

    More Database Code Articles
    More By Jayaram Krishnaswamy


       · Implementing parametric queries using DAPs as discussed in an earlier tutorial...
       · I found the above article exactly what I was looking for. However on page 3 of the...
       · thanks for your best articlebut what is your following source code? :-)
       · if so, could you please pass it on?thanks,m
       · did you ever find the code?
       · I was also unable to find the code you referred to on page 3. Am I overlooking...
       · No, I never heard from the author nor have I ever found the source code....
       · This Topic does not provide stifaction for the reader. It's doesn't contain complete...
       · Haha, the code is in the article without the html characters being escaped so it...
       · Hopefully this works. You can also view source to see it.


       · This is exactly what I am looking for, but I cannot locate the missing code that the...
       · HTML detects the code as part of the HTML code, therefor only possible to read when...
       · Some similar / additional information can be found...
     

    DATABASE CODE ARTICLES

    - Deployment of the MobiLink Synchronization M...
    - MobiLink Synchronization Wizard in SQL Anywh...
    - Finding Matching Records in Data Access Pages
    - Using the AccessDataSource Control in VS 2005
    - A Closer Look at ADO.NET: The Command Object
    - A Closer Look at ADO.NET: The Connection Obj...
    - Using ADO to Communicate with the Database, ...
    - Code Snippets: Counting Records
    - Constraints In Microsoft SQL Server 2000
    - Multilingual entries into a DB and to be dis...
    - Getting A List of Tables From SQL Server
    - SQL Server Database Creator - .NET Version
    - ADO Recordset Paging
    - Two combos, one textbox example
    - Discussion & Listserv Module by Mike Eck...





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