SunQuest
 
       ADO.NET
  Home arrow ADO.NET arrow Page 5 - Easing Transition From ASP and ADO to ASP....
IBM developerWorks
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
VeriSign Whitepapers 
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? 
ADO.NET

Easing Transition From ASP and ADO to ASP.NET and ADO.Net Part 1/2
By: Ruffin Bailey
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 13
    2002-03-21

    Table of Contents:
  • Easing Transition From ASP and ADO to ASP.NET and ADO.Net Part 1/2
  • Making the connection
  • Where did my RecordSet go?
  • Creating Column Headers
  • Conclusion

  • 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
     
    Iron Speed
     
    ADVERTISEMENT

    Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!

    Easing Transition From ASP and ADO to ASP.NET and ADO.Net Part 1/2 - Conclusion


    (Page 5 of 5 )

    Of course Microsoft didn't spend millions of dollars in R&D for us to use .NET to re-create yesterday’s technology. In the second part of this article I'll first show how to move this code into an aspx codebehind page and also show you how to replace not only the DataGrid's functionality, but also how to create a generic, reusable DataGrid component of your own.

    As a quick recap, we've found ASP.NET and ADO.NET equivalents for a number of classic ADO objects. These objects and their counterparts are shown in the table below:

    Comparison of ADO to ADO.NET classes

    We've seen the DataReader object in action and found out that it can serve to replace what we'd done with a RecordSet object and classic ASP in the past. Finally, we saw how to replace the Microsoft DataGrid in ASP.NET pages, improving on its functionality using skills we'd already learned as ASP programmers without having to learn the DataGrid's object model. We did this in a way that will easily lend itself towards creating codebehind pages (which is what we will tackle in part two of this article) and ultimately a true DataGrid replacement.

    [Note] The ADO.NET examples that we’ve seen in this article are for use with Microsoft SQL Server 7.0 or 2000 only. For other data sources (including Access, Oracle, Excel, etc) simply replace "Sql" in the objects class name with "OleDb", giving us the OleDbConnection, OleDbCommand, and OleDbDataReader objects. [End Note]
    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    ADO.NET ARTICLES

    - Datasets in Microsoft.Net
    - Latest Developments in the .Net World
    - Introduction to .NET
    - Automatic Generation of Single Table SQL Sta...
    - Data Access in .NET using C#: Part 1
    - All You Need To Know About ADO.NET: Part 2/2
    - All You Need To Know About ADO.NET: Part 1/2
    - Easing Transition From ASP and ADO to ASP.NE...
    - A Practical Comparison of ADO and ADO.NET


    Iron Speed





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway